Computer Tips - Linux: How do I remove a file that has a name starting with a dash?
Date: 2011mar3
OS: LinuxQ. Linux: How do I remove a file that has a name starting with a dash?
A. Use the full path or add ./ in front.
To remove a file called "-junk" do this:
rm ./-junk
Or
rm /full/path/to/file/-junk
This works for renaming, touching and copying too.