79a2bdc217ff80a537c981949f5327031795c353
[platform/upstream/coreutils.git] / man / rm.x
1 [NAME]
2 rm \- remove files or directories
3 [DESCRIPTION]
4 This manual page
5 documents the GNU version of
6 .BR rm .
7 .B rm
8 removes each specified file.  By default, it does not remove
9 directories.
10 .P
11 If the \fI\-I\fR or \fI\-\-interactive\=once\fR option is given,
12 and there are more than three files or the \fI\-r\fR, \fI\-R\fR,
13 or \fI\-\-recursive\fR are given, then
14 .B rm
15 prompts the user for whether to proceed with the entire operation.  If
16 the response is not affirmative, the entire command is aborted.
17 .P
18 Otherwise, if a file is unwritable, standard input is a terminal, and
19 the \fI\-f\fR or \fI\-\-force\fR option is not given, or the
20 \fI\-i\fR or \fI\-\-interactive\=always\fR option is given,
21 .B rm
22 prompts the user for whether to remove the file.  If the response is
23 not affirmative, the file is skipped.
24 .SH OPTIONS
25 [SEE ALSO]
26 unlink(1), unlink(2), chattr(1), shred(1)