[wd_asp elements=’search’ ratio=’100%’ id=1]

Delete a file that begins with a – dash or minus

17th December 2014

Raspberry-Pi

Raspberrypi - Codehaven

I made a file called -duration=5 by accident and could not delete it, the only way that worked was this!

First find it, and narrow it down to be the only onefind . -name "*duration*"

Then add the -delete tag to it
find . -name "*duration*" -delete