home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / doc / rm.man < prev    next >
Text File  |  1993-06-13  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. RM(1L)                                                     RM(1L)
  5.  
  6.  
  7. NAME
  8.        rm - remove files
  9.  
  10. SYNOPSIS
  11.        rm   [-dfirvR]   [--directory]  [--force]  [--interactive]
  12.        [--recursive] [--help] [--version] [--verbose] path...
  13.  
  14. DESCRIPTION
  15.        This manual page documents the  GNU  version  of  rm.   rm
  16.        removes  each  given file.  By default, it does not remove
  17.        directories.
  18.  
  19.        If a file is unwritable, the standard input is a tty,  and
  20.        the -f or --force option is not given, rm prompts the user
  21.        for whether to remove the file.  If the response does  not
  22.        begin with `y' or `Y', the file is skipped.
  23.  
  24.        GNU  rm,  like every program that uses the getopt function
  25.        to parse its arguments, lets you  use  the  --  option  to
  26.        indicate that all following arguments are non-options.  To
  27.        remove a file called `-f' in the  current  directory,  you
  28.        could type either
  29.               rm -- -f
  30.        or
  31.               rm ./-f
  32.        The Unix rm program's use of a single `-' for this purpose
  33.        predates the development of the getopt standard syntax.
  34.  
  35.    OPTIONS
  36.        -d, --directory
  37.               Remove  directories  with   `unlink'   instead   of
  38.               `rmdir',  and don't require a directory to be empty
  39.               before trying to unlink it.   Only  works  for  the
  40.               super-user.   Because  unlinking a directory causes
  41.               any files in the deleted directory to become unref-
  42.               erenced,  it  is  wise to fsck the filesystem after
  43.               doing this.
  44.  
  45.        -f, --force
  46.               Ignore nonexistent files and never prompt the user.
  47.  
  48.        -i, --interactive
  49.               Prompt   whether  to  remove  each  file.   If  the
  50.               response does not begin with `y' or `Y',  the  file
  51.               is skipped.
  52.  
  53.        -r, -R, --recursive
  54.               Remove the contents of directories recursively.
  55.  
  56.        -v, --verbose
  57.               Print the name of each file before removing it.
  58.  
  59.        --help Print a usage message and exit with a non-zero sta-
  60.               tus.
  61.  
  62.  
  63.  
  64. FSF                     GNU File Utilities                      1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RM(1L)                                                     RM(1L)
  71.  
  72.  
  73.        --version
  74.               Print version information on  standard  error  then
  75.               exit.
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. FSF                     GNU File Utilities                      2
  131.  
  132.  
  133.