rm Removes a file (deletes a link)
rm [options] file-list
The rm utility removes hard and/or symbolic links to one or more files. When you remove the last hard link to a file, the file is deleted.
Caution: Be careful when you use rm with wildcards
Because this utility enables you to remove a large number of files with a single command, use rm cautiously, especially when you are working with ambiguous file references. If you have any doubts about the effect of an rm command with an ambiguous file reference, first use echo with the same file reference and evaluate the list of files the reference generates. Alternatively, you can use the rm –i (––interactive) option.
Arguments
The file-list is a list of the files whose links rm will remove. Removing ...
Get A Practical Guide to Linux Commands, Editors, and Shell Programming, Fourth Edition 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.