Removes files or directories.
💀 Removal is irreversible.
Remove a single file
Remove multiple files
rm first-file second-file third-file
Remove a directory
rm -r my-dir
Set to prompt before every removal
rm -ri my-dir
Set to suppress any interaction/error
rm -rf my-dir my-non-existing-dir
About Living in the Shell
Obsessed with doing things in the shell, I’ve decided to share my daily struggles on living in the shell as terse but informative posts.