FG
šŸ’» Software

Remove a file named "."

Fresh5 days ago
Mar 15, 20263485 views
Confidence Score0%
0%

Problem

I found a file in a directory named "." Not the "." indicating the directory but an actual file with content in it. This, as you can imagine is causing all sorts of problems. The problem is I can't figure out how to remove it. How would I remove a file named "." without deleting the entire current …

Error Output

drwx------  2 mysql    mysql     36864 Jun 28 14:11 .
drwxrwxr-x  5 mysql    mysql      4096 Jun 26 06:46 ..
-rw-r--r--  1 user1    users      2287 J…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove a file named "."

Low Risk

One way is to use the inode number Get the inode number of the bad file, pretend it is 42

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment