Add/fix copyright notices and adjust to latest GNU FDL.
[platform/upstream/coreutils.git] / man / rm.x
1 '\" Copyright (C) 1998, 1999, 2001, 2003, 2004, 2006 Free Software
2 '\" Foundation, Inc.
3 '\"
4 '\" This is free software.  You may redistribute copies of it under the terms
5 '\" of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
6 '\" There is NO WARRANTY, to the extent permitted by law.
7 [NAME]
8 rm \- remove files or directories
9 [DESCRIPTION]
10 This manual page
11 documents the GNU version of
12 .BR rm .
13 .B rm
14 removes each specified file.  By default, it does not remove
15 directories.
16 .P
17 If the \fI\-I\fR or \fI\-\-interactive\=once\fR option is given,
18 and there are more than three files or the \fI\-r\fR, \fI\-R\fR,
19 or \fI\-\-recursive\fR are given, then
20 .B rm
21 prompts the user for whether to proceed with the entire operation.  If
22 the response is not affirmative, the entire command is aborted.
23 .P
24 Otherwise, if a file is unwritable, standard input is a terminal, and
25 the \fI\-f\fR or \fI\-\-force\fR option is not given, or the
26 \fI\-i\fR or \fI\-\-interactive\=always\fR option is given,
27 .B rm
28 prompts the user for whether to remove the file.  If the response is
29 not affirmative, the file is skipped.
30 .SH OPTIONS
31 [SEE ALSO]
32 unlink(1), unlink(2), chattr(1), shred(1)