4.4BSD/usr/share/man/cat1/rm.0

Compare this file to the similar file:
Show the results in this format:

RM(1)                        BSD Reference Manual                        RM(1)

NNAAMMEE
     rrmm - remove directory entries

SSYYNNOOPPSSIISS
     rrmm [--ff | --ii] [--ddRRrr] _f_i_l_e _._._.

DDEESSCCRRIIPPTTIIOONN
     The rrmm utility attempts to remove the non-directory type files specified
     on the command line.  If the permissions of the file do not permit writ-
     ing, and the standard input device is a terminal, the user is prompted
     (on the standard error output) for confirmation.

     The options are as follows:

     --dd    Attempt to remove directories as well as other types of files.

     --ff    Attempt to remove the files without prompting for confirmation, re-
           gardless of the file's permissions.  If the file does not exist, do
           not display a diagnostic message or modify the exit status to re-
           flect an error.  The --ff option overrides any previous --ii options.

     --ii    Request confirmation before attempting to remove each file, regard-
           less of the file's permissions, or whether or not the standard in-
           put device is a terminal.  The --ii option overrides any previous --ff
           options.

     --RR    Attempt to remove the file hierarchy rooted in each file argument.
           The --RR option implies the --dd option.  If the --ii option is speci-
           fied, the user is prompted for confirmation before each directory's
           contents are processed (as well as before the attempt is made to
           remove the directory).  If the user does not respond affirmatively,
           the file hierarchy rooted in that directory is skipped.

     --rr    Equivalent to --RR.

     The rrmm utility removes symbolic links, not the files referenced by the
     links.

     It is an error to attempt to remove the files ``.'' and ``..''.

     The rrmm utility exits 0 if all of the named files or file hierarchies were
     removed, or if the --ff option was specified and all of the existing files
     or file hierarchies were removed.  If an error occurs, rrmm exits with a
     value >0.

SSEEEE AALLSSOO
     rmdir(1),  unlink(2),  fts(3),  symlink(7)

CCOOMMPPAATTIIBBIILLIITTYY
     The rrmm utility differs from historical implementations in that the --ff op-
     tion only masks attempts to remove non-existent files instead of masking
     a large variety of errors.

     Also, historical BSD implementations prompted on the standard output, not
     the standard error output.

SSTTAANNDDAARRDDSS
     The rrmm command is expected to be IEEE Std1003.2 (``POSIX'') compatible.

4.4BSD                           May 31, 1993                                1