[GENERAL] Deleting a file with hyphens as the first character(s) of the filename
If you ever end up with a file that has hyphens at the start of it's filename, you will find it extremely difficult to get rid of!
Every time you issue the command
rm --weirdfilename
rm will complain that '--weirdfilename' is an invalid option. Do the following to get around this problem:
rm -- --weirdfilename
This works because the '--' signifies that the next items are arguments for the command and not options.
back