1 '\" Copyright (C) 1998-2023 Free Software Foundation, Inc.
3 '\" This is free software. You may redistribute copies of it under the terms
4 '\" of the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
5 '\" There is NO WARRANTY, to the extent permitted by law.
7 rm \- remove files or directories
10 documents the GNU version of
13 removes each specified file. By default, it does not remove
16 If the \fI\-I\fR or \fI\-\-interactive=once\fR option is given,
17 and there are more than three files or the \fI\-r\fR, \fI\-R\fR,
18 or \fI\-\-recursive\fR are given, then
20 prompts the user for whether to proceed with the entire operation. If
21 the response is not affirmative, the entire command is aborted.
23 Otherwise, if a file is unwritable, standard input is a terminal, and
24 the \fI\-f\fR or \fI\-\-force\fR option is not given, or the
25 \fI\-i\fR or \fI\-\-interactive=always\fR option is given,
27 prompts the user for whether to remove the file. If the response is
28 not affirmative, the file is skipped.
31 unlink(1), unlink(2), chattr(1), shred(1)