To remove a file, the
rm command can be used. The
rm command removes the file that is passed along as a parameter. By default,
rm will refuse to remove a directory; it only operates on files.
The two options that are very often passed to
-f. First, a word of caution on the
-f option, which stands for force; while the
rm command should be used with extreme care, the
-f option requires even more thought and attention. The
-f option forces the removal of anything
rm can delete, regardless of any permission.
-r option also needs to be used with care, as it stands for recursively delete. Ironically, the
-r option takes a directory as a parameter, so it can recursively delete every file and directory under the passed location. ...