FG
💻 Software

Remove a file on Linux using the inode number

Fresh7 days ago
Mar 15, 202647269 views
Confidence Score0%
0%

Problem

If you create a file on UNIX/Linux with special characters, such as , you can't remove it with . You have to use the inode number (you can if you add the before the name, I know, but you'd have to guess as a user that it was used in the file creation). I checked the manpage for rm, but there's no m…

Error Output

touch \"la*

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 on Linux using the inode number

Low Risk

Some other methods include: escaping the special chars: use the find command and only search the current directory. The find command can search for inode numbers, and has a handy switch:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment