1RM(1)                       General Commands Manual                      RM(1)
2
3
4

NAME

6       rm, rmdir  - remove (unlink) files or directories
7

SYNOPSIS

9       rm [ -f ] [ -r ] [ -i ] [ - ] file ...
10
11       rmdir dir ...
12

DESCRIPTION

14       Rm  removes  the entries for one or more files from a directory.  If an
15       entry was the last link to the file, the file is destroyed.  Removal of
16       a file requires write permission in its directory, but neither read nor
17       write permission on the file itself.
18
19       If a file has no write permission and the standard input is a terminal,
20       its permissions are printed and a line is read from the standard input.
21       If that line begins with `y' the file is deleted,  otherwise  the  file
22       remains.  No questions are asked and no errors are reported when the -f
23       (force) option is given.
24
25       If a designated file is a directory, an error comment is printed unless
26       the  optional  argument -r has been used.  In that case, rm recursively
27       deletes the entire contents of the specified directory, and the  direcā€
28       tory itself.
29
30       If  the -i (interactive) option is in effect, rm asks whether to delete
31       each file, and, under -r, whether to examine each directory.
32
33       The null option - indicates that all the arguments following it are  to
34       be  treated as file names.  This allows the specification of file names
35       starting with a minus.
36
37       Rmdir removes entries for the named directories, which must be empty.
38

SEE ALSO

40       rm(1), unlink(2), rmdir(2)
41
42
43
444th Berkeley Distribution       April 29, 1985                           RM(1)
Impressum