I accidentally created a file when I meant to pass an option. Now I have a file named: -myfile
that I can not delete with rm -myfile
$ touch hi > -myfile
$ rm -myfile
rm: invalid option -- 'm'
Try 'rm ./-myfile' to remove the file ‘-myfile’.
Try 'rm --help' for more information.