Browse - Computer Tips - How do I remove a file that has a name starting with a dash?Date: 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 ./-junkOrrm /full/path/to/file/-junkThis works for renaming, touching and copying too. Add a commentSign in to add a comment![]()
|