home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / apps / posix / source / MAN / RM.PRT < prev    next >
Text File  |  1999-11-17  |  2KB  |  67 lines

  1.                                                            RM (1)
  2.  
  3. NAME
  4.  
  5.   rm - Remove directory entries.
  6.  
  7. SYNOPSIS
  8.  
  9.   rm [ f ] [ dRr ] file ...
  10. DESCRIPTION
  11.  
  12.   The rm utility attempts to remove the non-directory type  files
  13. specified on the command line.  If the permissions of the file do
  14. not permit writing, and the standard input device is a  terminal,
  15. the user is prompted (on the standard error output) for confirma-
  16. tion.
  17.   The options are as follows:
  18.      d - Attempt to remove directories as well as other types  of
  19.      files.
  20.      f - Attempt to remove the files without prompting  for  con-
  21.      firmation,  regardless  of  the  file's permissions.  If the
  22.      file does not exist, do not display a diagnostic message  or
  23.      modify  the  exit  status  to  reflect an error.  The option
  24.      overrides any previous options.
  25.      i - Request confirmation before attempting  to  remove  each
  26.      file,  regardless  of  the file's permissions, or whether or
  27.      not the standard input device is  a  terminal.   The  option
  28.      overrides any previous options.
  29.      R - Attempt to remove the file hierarchy rooted in each file
  30.      argument.   The option implies the option.  If the option is
  31.      specified, the user is prompted for confirmation before each
  32.      directory's  contents  are  processed (as well as before the
  33.      attempt is made to remove the directory).  If the user  does
  34.      not respond affirmatively, the file hierarchy rooted in that
  35.      directory is skipped.
  36.        r - Equivalent to
  37.   The rm utility removes symbolic links, not the files referenced
  38. by the links.
  39.   It is an error to attempt to remove the files ``.'' and ``..''.
  40.   The rm utility exits 0 if  all  of  the  named  files  or  file
  41. hierarchies  were removed, or if the option was specified and all
  42. of the existing files or file hierarchies were  removed.   If  an
  43. error occurs, rm exits with a value >0.
  44. SEE ALSO
  45.  
  46.   rmdir (1) , unlink (2) , fts (3)
  47. COMPATIBILITY
  48.  
  49.   The rm utility differs from historical implementations in  that
  50. the  option  only masks attempts to remove non-existent files in-
  51. stead of masking a large variety of errors.
  52.   Also, historical implementations prompted on the standard  out-
  53. put, not the standard error output.
  54. STANDARDS
  55.  
  56.   The rm command is expected to be compatible.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.