rm
💣
Removes files or directories.
💀 Removal is irreversible.
Remove a single file
rm some-file
Remove multiple files
rm first-file second-file third-file
Remove a directory -r
rm -r my-dir
Set to prompt before every removal -i
rm -ri my-dir
Set to suppress any interaction/error -f
rm -rf my-dir my-non-existing-dir
Top comments (0)