by mistake i created the file like " ; "
i tried to remove this file using the below syntax ,
rm -f ;
but file still not deleted,
what i do now
|
by mistake i created the file like " ; " i tried to remove this file using the below syntax , rm -f ; but file still not deleted, what i do now
| |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Everyone's answers will work to remove the file. The reason you could not delete it is because using a semicolon in the terminal generally signifies the end of the command. Another trick for files like this is to delete by inode number. You can find the inode number next to your file by running: ls -il Now use the inode number in this syntax: find . -inum 123456 -delete Replace 123456 with the appropriate inode number. | |||
|
feedback
|