command line

Oops! Deleting a file that starts with - (dash) in Linux

On accident today I created a file named "-c".

Of course running the command rm -c will result in an "invalid option" error.

To remove include the current directory in the path with ./

My command looked like this: rm ./-c

Subscribe to RSS - command line