home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RM(1) USER COMMANDS RM(1)
-
-
-
- NAME
- rm - remove files or directories
-
- SYNOPSIS
- rm [-r] [-s] [-t] [-] _n_a_m_e ...
-
- DESCRIPTION
- _r_m removes files and/or directories. Read-only files are
- specially treated, since DOS's _u_n_l_i_n_k function won't work on
- them. If such a file is encountered, _r_m prompts the user to
- confirm the removal, and if confirmed, uses _c_h_m_o_d to make
- the file _u_n_l_i_n_kable. See the -f option.
-
- OPTIONS
- - Treat all following arguments as filenames so that one
- can specify filenames starting with a "-".
-
- -f Force deletion of read-only files. _r_m assumes the con-
- firmation normally requested is given.
-
- -r Recursively delete the contents of a directory, its
- subdirectories, and the directory itself. _r_m will not
- remove any directories without -r.
-
- -s Ask whether to delete each file, and, under -r, whether
- to examine each directory. Sometimes called the
- _s_e_l_e_c_t_i_v_e option.
-
- -t Test the command. Lists the files (and directories)
- that _r_m would have attempted to remove, without attemp-
- ting to remove them.
-
- WARNING
- It is forbidden to remove the files ".." and "." to avoid
- the antisocial consequences of inadvertently doing something
- like "rm -r .*".