xref: /386bsd/usr/share/man/cat1/rm.0 (revision a2142627)
1RM(1)                       386BSD Reference Manual                      RM(1)
2
3NNAAMMEE
4     rrmm - Remove directory entries.
5
6SSYYNNOOPPSSIISS
7     rrmm [--ff | --ii] [--ddRRrr] _f_i_l_e ...
8
9DDEESSCCRRIIPPTTIIOONN
10     The rrmm utility attempts to remove the non-directory type files specified
11     on the command line.  If the permissions of the file do not permit
12     writing, and the standard input device is a terminal, the user is
13     prompted (on the standard error output) for confirmation.
14
15     The options are as follows:
16
17     --dd    Attempt to remove directories as well as other types of files.
18
19     --ff    Attempt to remove the files without prompting for confirmation,
20           regardless of the file's permissions.  If the file does not exist,
21           do not display a diagnostic message or modify the exit status to
22           reflect an error.  The --ff option overrides any previous --ii options.
23
24     --ii    Request confirmation before attempting to remove each file,
25           regardless of the file's permissions, or whether or not the
26           standard input device is a terminal.  The --ii option overrides any
27           previous --ff options.
28
29     --RR    Attempt to remove the file hierarchy rooted in each file argument.
30           The --RR option implies the --dd option.  If the --ii option is
31           specified, the user is prompted for confirmation before each
32           directory's contents are processed (as well as before the attempt
33           is made to remove the directory).  If the user does not respond
34           affirmatively, the file hierarchy rooted in that directory is
35           skipped.
36
37     --rr    Equivalent to --RR.
38
39     The rrmm utility removes symbolic links, not the files referenced by the
40     links.
41
42     It is an error to attempt to remove the files ``.'' and ``..''.
43
44     The rrmm utility exits 0 if all of the named files or file hierarchies were
45     removed, or if the --ff option was specified and all of the existing files
46     or file hierarchies were removed.  If an error occurs, rrmm exits with a
47     value >0.
48
49SSEEEE AALLSSOO
50     rmdir(1),  unlink(2),  fts(3)
51
52CCOOMMPPAATTIIBBIILLIITTYY
53     The rrmm utility differs from historical implementations in that the --ff
54     option only masks attempts to remove non-existent files instead of
55     masking a large variety of errors.
56
57     Also, historical BSD UNIX implementations prompted on the standard
58     output, not the standard error output.
59
60SSTTAANNDDAARRDDSS
61     The rrmm command is expected to be IEEE Std1003.2 (``POSIX'') compatible.
62
63BSD Experimental                 July 27, 1991                               1
64
65
66
67