.he 'RM (I)'1/20/73'RM (I)'
NAME rm -- remove (unlink) files
SYNOPSIS rm
\b\b__ [ -f
\b\b__ ] [ -r
\b\b__ ] name\d1\u ...
removes the entries for one or more files from a directory.
If an entry was the last link to the file, the file
Removal of a file requires write permission in its directory,
but neither read nor write permission on the file itself.
If there is no write permission to a
file designated to be removed,
rm
\b\b__ will print the file name, its mode and then
read a line from the standard input.
If the line begins with 'y', the file is removed,
The optional argument -f
\b\b__ prevents the above interaction.
If a designated file is a directory,
an error comment is printed unless the optional
argument -r
\b\b__ has been used.
In that case, rm
\b\b__ recursively deletes the
entire contents of the specified directory.
To remove directories per se see rmdir(I).
FILES /etc/glob to implement -r
\b\b__ flag
DIAGNOSTICS "name: non existent"
"name: not removed" if cannot remove
"name: try again" error from fork
rm
\b\b__ removes the contents of a directory under the
-r
\b\b__ flag, full pathnames are not printed in diagnostics.