No credit card required
The rm command is used to remove (delete) files and directories, like this:
where item is the name of one or more files or directories.
Be Careful With Rm!
Unix-like operating systems such as Linux do not have an undelete command. Once you delete something with rm, it’s gone. Linux assumes you’re smart and you know what you’re doing.
Be particularly careful with wildcards. Consider this classic example. Let’s say you want to delete just the HTML files in a directory. To do this, you type:
which is correct, but if you accidentally place a space between the * and the .html like so:
the rm command will delete all the files in the directory and then complain that there is no file called .html