Hacker News new | ask | show | jobs
by eznzt 1945 days ago
For everybody reading, a directory called "-rf" is deleted by writing "rm -- -rf"; -- indicates the end of all user-provided options.
1 comments

If you're working with files, another (perhaps more reliable) way is `rm ./-rf`.