quickie of the day – rm

One thing that bothered me for a long time was when I had to delete files behinning with `-`or `–`.
You can always use slashes and quotes but there is an easier way to go about it.

Add — to rm, and it will stop parsing the command line for flags and options.
So simply try this next time!

rm -- -file

A lot simpler and cleaner than slashes and quotes if you ask me!


Leave a Reply

Your email address will not be published. Required fields are marked *