News for hackers. Stuff that matters.
Re:Why is the DOS path character "\"? (2005) by eznzt on Friday February 26, 2021 @05:11AM (#26273214)
For everybody reading, a directory called "-rf" is deleted by writing "rm -- -rf"; -- indicates the end of all user-provided options.
Re:Why is the DOS path character "\"? (2005) by duckerude on Friday February 26, 2021 @06:22AM (#26273647)
If you're working with files, another (perhaps more reliable) way is `rm ./-rf`.