Name
rm [options
] files
| directories
— coreutils
Synopsis
/bin
stdin stdout - file -- opt --help --version
The rm
(remove) command can delete files:
$ rm file1 file2 file3
or recursively delete directories:
$ rm -r dir1 dir2
Useful options | |
| Interactive mode. Ask before deleting each file. |
| Force the deletion, ignoring any errors or warnings. |
| Recursively remove a directory and its contents. Use with caution, especially if combined with the |
Get Linux Pocket Guide 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.