rm
Format:
rm options files
Options:
-I | Prompt before each file is deleted (safe mode) |
-r | Remove a directory if it exists |
rm will delete files and/or directories.
$ rm myfile
$ rm -r /var/spool/tmp
will delete all files including directories from /var/spool/tmp and below.
Get Linux and Unix Shell Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.