// Internet Duct Tape

Removing filenames starting with – under Unix

Posted in Asides, Linux and Unix, Technology by engtech on July 11, 2006

One problem users sometimes hit under Unix is how to remove files that start with the “-” character since it usually implies an option to the remove command.

The secret is to use “–” to signify that all further options are to be ignored.

rm -- -bad_filename

Comments Off on Removing filenames starting with – under Unix

%d bloggers like this: