2012-01-27 11:35:24 +01:00
|
|
|
'\" Copyright (C) 1998-2012 Free Software Foundation, Inc.
|
2006-08-17 19:58:17 +00:00
|
|
|
'\"
|
|
|
|
|
'\" This is free software. You may redistribute copies of it under the terms
|
|
|
|
|
'\" of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
|
|
|
|
|
'\" There is NO WARRANTY, to the extent permitted by law.
|
1999-11-02 13:51:42 +00:00
|
|
|
[NAME]
|
|
|
|
|
rm \- remove files or directories
|
1998-09-12 20:12:55 +00:00
|
|
|
[DESCRIPTION]
|
1998-09-12 20:20:30 +00:00
|
|
|
This manual page
|
|
|
|
|
documents the GNU version of
|
|
|
|
|
.BR rm .
|
|
|
|
|
.B rm
|
|
|
|
|
removes each specified file. By default, it does not remove
|
|
|
|
|
directories.
|
|
|
|
|
.P
|
2006-02-20 16:49:27 +00:00
|
|
|
If the \fI\-I\fR or \fI\-\-interactive\=once\fR option is given,
|
|
|
|
|
and there are more than three files or the \fI\-r\fR, \fI\-R\fR,
|
|
|
|
|
or \fI\-\-recursive\fR are given, then
|
1998-09-12 20:20:30 +00:00
|
|
|
.B rm
|
2006-02-20 16:49:27 +00:00
|
|
|
prompts the user for whether to proceed with the entire operation. If
|
|
|
|
|
the response is not affirmative, the entire command is aborted.
|
|
|
|
|
.P
|
|
|
|
|
Otherwise, if a file is unwritable, standard input is a terminal, and
|
|
|
|
|
the \fI\-f\fR or \fI\-\-force\fR option is not given, or the
|
|
|
|
|
\fI\-i\fR or \fI\-\-interactive\=always\fR option is given,
|
|
|
|
|
.B rm
|
|
|
|
|
prompts the user for whether to remove the file. If the response is
|
|
|
|
|
not affirmative, the file is skipped.
|
1998-09-12 20:20:30 +00:00
|
|
|
.SH OPTIONS
|
2001-04-29 07:01:12 +00:00
|
|
|
[SEE ALSO]
|
2006-03-06 15:27:50 +00:00
|
|
|
unlink(1), unlink(2), chattr(1), shred(1)
|