home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / rm.zip / RM.DOC < prev    next >
Text File  |  1989-02-17  |  2KB  |  44 lines

  1.  
  2.  
  3.  
  4. RM(1)                    USER COMMANDS                      RM(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      rm - remove files or directories
  10.  
  11. SYNOPSIS
  12.      rm [-r] [-s] [-t] [-] _n_a_m_e ...
  13.  
  14. DESCRIPTION
  15.      _r_m removes  files and/or  directories.  Read-only files  are
  16.      specially treated, since DOS's _u_n_l_i_n_k function won't work on
  17.      them.  If such a file is encountered, _r_m prompts the user to
  18.      confirm the  removal, and if  confirmed, uses _c_h_m_o_d to  make
  19.      the file _u_n_l_i_n_kable.  See the -f option.
  20.  
  21. OPTIONS
  22.      -    Treat all following arguments as filenames so  that one
  23.           can specify filenames starting with a "-".
  24.  
  25.      -f   Force deletion of read-only files.  _r_m assumes the con-
  26.           firmation normally requested is given.
  27.  
  28.      -r   Recursively delete the contents  of  a  directory,  its
  29.           subdirectories,  and the directory itself.  _r_m will not
  30.           remove any directories without -r.
  31.  
  32.      -s   Ask whether to delete each file, and, under -r, whether
  33.           to   examine  each  directory.   Sometimes  called  the
  34.           _s_e_l_e_c_t_i_v_e option.
  35.  
  36.      -t   Test  the command.  Lists  the files (and  directories)
  37.           that _r_m would have attempted to remove, without attemp-
  38.           ting to remove them.
  39.  
  40. WARNING
  41.      It  is forbidden  to remove the files ".." and "." to  avoid
  42.      the antisocial consequences of inadvertently doing something
  43.      like "rm -r .*".
  44.