How to move files starting with special chars as dashes

If it has come that you have tried to scape, enclose or do whatever to files starting with for example a dash, so as you can rename it, or copy it or scp it and didn’t find out how, this is how you can do it:

mv -file-with-a-dash file-without-dash

#one of the possible ways

mv ./-file-with-a-dash file-without-dash


Posted

in

by

Tags:

Comments

Leave a Reply