mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-03 06:53:31 +08:00
fb1ca34140
Avoid warnings from: groff -b -e -mandoc -T utf8 -rF0 -t -w w -z * man/du.x: Change ".BR" to ".B" if there is only one argument. Protect an end-of-sentence indicator (.?!) with '\&' if it does not mean an end of a sentence. Change '--' to '\-\-' if it indicates an option. * man/rm.x: Change '\=' to '='.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
'\" Copyright (C) 1998-2018 Free Software Foundation, Inc.
|
|
'\"
|
|
'\" This is free software. You may redistribute copies of it under the terms
|
|
'\" of the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
|
|
'\" There is NO WARRANTY, to the extent permitted by law.
|
|
[NAME]
|
|
rm \- remove files or directories
|
|
[DESCRIPTION]
|
|
This manual page
|
|
documents the GNU version of
|
|
.BR rm .
|
|
.B rm
|
|
removes each specified file. By default, it does not remove
|
|
directories.
|
|
.P
|
|
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
|
|
.B rm
|
|
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.
|
|
.SH OPTIONS
|
|
[SEE ALSO]
|
|
unlink(1), unlink(2), chattr(1), shred(1)
|