rm.x 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. '\" Copyright (C) 1998-2018 Free Software Foundation, Inc.
  2. '\"
  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.
  6. [NAME]
  7. rm \- remove files or directories
  8. [DESCRIPTION]
  9. This manual page
  10. documents the GNU version of
  11. .BR rm .
  12. .B rm
  13. removes each specified file. By default, it does not remove
  14. directories.
  15. .P
  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
  19. .B rm
  20. prompts the user for whether to proceed with the entire operation. If
  21. the response is not affirmative, the entire command is aborted.
  22. .P
  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,
  26. .B rm
  27. prompts the user for whether to remove the file. If the response is
  28. not affirmative, the file is skipped.
  29. .SH OPTIONS
  30. [SEE ALSO]
  31. unlink(1), unlink(2), chattr(1), shred(1)