Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
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