Lesson 9: Deleting Safely with rm
This is the most safety-critical lesson. `rm` deletes a file — and the terminal has no recycle bin. What's deleted is gone. We'll learn to delete, but mostly learn when to stop and think twice.
rm isn't tossing into a bin (you can fish it back). rm is shredding a document. There's no way back.
- rm
- A command that deletes a file permanently, with no recycle bin
- rm -i
- A delete that asks for confirmation before each file
- rm -r
- A recursive delete of a folder and everything in it