Deleting A File By It's Inode Value

It is possible to delete a file by the it’s inode value.

To test this, first create a file:

$ cat > '\n\n\n\n\n\n\n' 
type some text 

To list the inode and display the characters.

$ ls -libt *

To remove by inode. Note the “–” option. This will keep any special characters in the file from being interpreted at “rm” options.

$ find . -inum -exec rm -- '{}' \;

Or to check contents

$ find . -inum -exec cat '{}' \;