[0m


RM(1)		    UNIX Programmer's Manual		    RM(1)



[1mNAME
     [0mrm, rmdir	- remove (unlink) files or directories

[1mSYNOPSIS
     rm [0m[ [1m-f [0m] [ [1m-r [0m] [ [1m-i [0m] [ [1m- [0m] file ...

     [1mrmdir [0mdir ...

[1mDESCRIPTION
     [0m_R_m removes the entries for one or more files from a direc-
     tory.  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 a file has no write permission and the standard input is
     a terminal, its permissions are printed and a line is read
     from the standard input.  If that line begins with `y' the
     file is deleted, otherwise the file remains.  No questions
     are asked and no errors are reported when the [1m-f [0m(force)
     option is given.

     If a designated file is a directory, an error comment is
     printed unless the optional argument [1m-r [0mhas been used.  In
     that case, _r_m recursively deletes the entire contents of the
     specified directory, and the directory itself.

     If the [1m-i [0m(interactive) option is in effect, _r_m asks whether
     to delete each file, and, under [1m-r[0m, whether to examine each
     directory.

     The null option [1m- [0mindicates that all the arguments following
     it are to be treated as file names.  This allows the specif-
     ication of file names starting with a minus.

     _R_m_d_i_r removes entries for the named directories, which must
     be empty.

[1mSEE ALSO
     [0mrm(1), unlink(2), rmdir(2)















Printed 28/11/91    Revision 1.2 of 19/10/88			1



[0m