Deleting files with special characters

| | Comments (3) | TrackBacks (0)

You can delete a file with strange characters (especially hidden characters) by it's inode number.

To find the inode number of a file, list the directory with the -i option:


ram# ls -i
2064227 test

2064227 is the inode number of the file 'test'.

Use the find command to delete the file by it's inode number:


find . -inum 2064227 -exec rm {} \;

0 TrackBacks

Listed below are links to blogs that reference this entry: Deleting files with special characters.

TrackBack URL for this entry: http://www.megalinux.net/cgi-bin/mt/mt-tb.fcgi/78

3 Comments

Thanks for this tip. It is especially useful for non-English speakers.
Is it on purpose that your MT version does not propose signing in with OpenID?

Ram Prasad Author Profile Page said:

Thanks for the feedback, Brenton. Let me see if I can enable openID authentication also

Ram Prasad Author Profile Page said:

OpenID has been enabled. Check it out and let me know.

Leave a comment

About this Entry

This page contains a single entry by Ram Prasad published on November 9, 2007 3:01 PM.

HP DV2610US & Ubuntu Gutsy Gibbon (7.10) was the previous entry in this blog.

Installing PHP with Oracle support is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by
Movable Type 4.01