Browse - computer tips - linux remove file with name starting with dashDate: 2011mar3 OS: Linux Q. 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.
Add a commentSign in to add a comment | Advertisements:
|