|
|
1.1 root 1: .pa 1
2: .he 'RM (I)'1/20/73'RM (I)'
3: .ti 0
4: NAME rm -- remove (unlink) files
5: .sp
6: .ti 0
7: SYNOPSIS rm__ [ -f__ ] [ -r__ ] name\d1\u ...
8: .sp
9: .ti 0
10: DESCRIPTION rm__
11: removes the entries for one or more files from a directory.
12: If an entry was the last link to the file, the file
13: is destroyed.
14: Removal of a file requires write permission in its directory,
15: but neither read nor write permission on the file itself.
16:
17: If there is no write permission to a
18: file designated to be removed,
19: rm__ will print the file name, its mode and then
20: read a line from the standard input.
21: If the line begins with 'y', the file is removed,
22: otherwise it is not.
23: The optional argument -f__ prevents the above interaction.
24:
25: If a designated file is a directory,
26: an error comment is printed unless the optional
27: argument -r__ has been used.
28: In that case, rm__ recursively deletes the
29: entire contents of the specified directory.
30: To remove directories per se see rmdir(I).
31: .sp
32: .ti 0
33: FILES /etc/glob to implement -r__ flag
34: .sp
35: .ti 0
36: SEE ALSO rmdir(I)
37: .sp
38: .ti 0
39: DIAGNOSTICS "name: non existent"
40: .br
41: "name: not removed" if cannot remove
42: .br
43: "name: try again" error from fork
44: .sp
45: .ti 0
46: BUGS When
47: rm__ removes the contents of a directory under the
48: -r__ flag, full pathnames are not printed in diagnostics.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.