Skip to content
zero2vibecodelearn vibe coding

What rm -rf does

Delete a folder and everything in it without asking — the most dangerous command there is.

rm-rfmyfolder
  • rmcommand — delete
  • -rfflag (a command option)
  • myfolderargument: a file, a folder, or text

What it does when you run it

$ rm -rf myfolder
$ ls
a.txt  app.js  downloads  log.txt  names.txt  notes.txt  old.txt  projects  script.sh  todo.md

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii