This question already has an answer here:
I inadvertently created a file called
-r in my home directory. Now I cannot get rid of it:
rm -rf rm: missing operand Try 'rm --help' for more information.
rm /-/r rm: cannot remove ‘/-/r’: No such file or directory
rm \-r rm: missing operand Try 'rm --help' for more information.
Is there a way to remove this file without deleting the whole directory?