Move files beginning with an hyphen

Posted on August 19, 2007 in Linux

This one is easy, as escaping does not work you have to prefix the filename with two hyphens like so:

mv -- -some_silly_filename_with_an_hyphen_before_it