|
|
||
|
||
|
|
| Red Hat Documentation: man pages: man1: User Commands (1) |
RMSection: User Commands (1)Updated: August 1998 Index NAMErm - remove files or directoriesSYNOPSISrm [options] file...POSIX options: [-fiRr] GNU options (shortest form): [-dfirvR] [--help] [--version] [--] DESCRIPTIONrm removes each given file. By default, it does not remove directories. But when the -r or -R option is given, the entire directory tree below the specified directory is removed (and there are no limitations on the depth of directory trees that can be removed by `rm -r'). It is an error when the last path component of file is either . or .. (so as to avoid unpleasant surprises with `rm -r .*' or so).If the -i option is given, or if a file is unwritable, standard input is a terminal, and the -f option is not given, rm prompts the user for whether to remove the file, writing a question to stderr and reading an answer from stdin. If the response is not affirmative, the file is skipped. POSIX OPTIONS
SVID DETAILSThe System V Interface Definition forbids removal of the last link to an executable binary file that is being executed.GNU DETAILSThe GNU implementation (in fileutils-3.16) is broken in the sense that there is an upper limit to the depth of hierarchies that can be removed. (If necessary, a utility `deltree' can be used to remove very deep trees.)GNU OPTIONS
GNU STANDARD OPTIONS
ENVIRONMENTThe variables LANG, LC_ALL, LC_COLLATE, LC_CTYPE and LC_MESSAGES have the usual meaning.CONFORMING TOPOSIX 1003.2, except for the limitation on file hierarchy depth.NOTESThis page describes rm as found in the fileutils-3.16 package; other versions may differ slightly. Mail corrections and additions to aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@lightside.ddns.org . Report bugs in the program to fileutils-bugs@gnu.ai.mit.edu.
Index
This document was created by using the manual pages. Time: 11:46:34 GMT, March 24, 2025 |
|
|