hi friends,
i need to delete a file named "-vyxx-.0.sdct.txt"
i'm unable to use
"rm -vyxx-.0.sdct.txt"
jus give me your suggesstions
thanks in advance
hi friends,
i need to delete a file named "-vyxx-.0.sdct.txt"
i'm unable to use
"rm -vyxx-.0.sdct.txt"
jus give me your suggesstions
thanks in advance
rm -- filename
will do the trick if the filename starts with a -
Another option is to delete files using the inode number with "find ... -inum ... -exec rm {} \;"
This will work even on the most awkwardly named files like (yes, i have seen that once!) "..." or named by nonprintable characters.
bakunin
one more
provide the complete path of the file along with rm command
A single dot refers to the current directory, so:
$ rm ./-annoying-file.txt
also works.
You have this file -vyxx-.0.sdct.txt
It will work also with that way
$rm -f \-vyxx\-.0.sdct.txt