If the file you want to delete a character starting with "minus" (-)
, the rm
command consider the following as part of the command line.
Thanks to Jeff for this tip.
- To remedy this, one solution is to precede the filename of the command "--", indicating rm that there are more options beyond this:
- A second solution is to escape the character "-" by preceding it with a backslash:
- A final solution is to give the full path or relative path beginning with. / and having the filename in quotes:
Published by jak58
Latest update on April 10, 2012 at 01:01 PM by jak58.