


      RM(1)                       (UNIX 5.0)                      RM(1)



      NAME
           rm, rmdir  - remove files or directories

      SYNTAX
           rm [ -fri ] file ...

           rmdir dir ...

      DESCRIPTION
           Rmdir removes one or more directories, which must be empty.

           Rm removes one or more file entries from a directory.  If an
           entry was the last link to the file, the file is destroyed.

           Removal of a file requires write permission in its
           directory, but neither read nor write permission on the file
           itself.

           If file has no write permission, and the standard input is
           the terminal, rm prints its access code and prompts the user
           for go-ahead to remove that file.  User response must begin
           with y, or the file will not be removed.

           -f specifies that no questions will be asked before rm
           removes files without write permission.

           If the standard input is not a terminal, no questions are
           asked.

           Rm -r directory causes rm to remove each file in the
           directory (unless it has no write permission in which case
           it will ask), and then the directory itself.

           Rm -i files specifies that rm will interactively ask whether
           to delete each file.

           Rm -ir directories specifies that rm will ask which named
           directories you want to examine, and then which files within
           your selected directories you want to remove, then which
           directories you want to remove.

           It is forbidden to remove the file .. merely to avoid the
           antisocial consequences of inadvertently doing something
           like:

                rm -r .*

      SEE ALSO
           unlink(2).






      Page 1                                          (73 A2 02MT REV1)



