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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

40       rm(1), unlink(2), rmdir(2)
41
42
43
444.2 Berkeley Distribution       April 29, 1985                        RMDIR(1)
Impressum