rm
[
options
]
files
Delete one or more files
. To remove a file, you must have write permission in the directory that contains the file, but you need not have permission on the file itself. If you do not have write permission on the file, you are prompted (y
or n
) to override.
-f
Force. Remove write-protected files without prompting.
-i
Prompt for y
(remove the file) or n
(do not remove the file). Overrides -f
.
-r
If file
is a directory, remove the entire directory and all its contents, including subdirectories. Be forewarned: use of this option can be dangerous.
-R
Same as -r
. Solaris only.
--
Mark the end of options (rm
still accepts -
, the old form). Use this when supplying a filename beginning with -
.