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:

 bash | 
 
 copy code |
?

1
mv -file-with-a-dash file-without-dash
2
3
4
5
#one of the possible ways

Leave a Reply