|
|
1.1 ! root 1: .th RM I 1/20/73 ! 2: .sh NAME ! 3: rm \*- remove (unlink) files ! 4: .sh SYNOPSIS ! 5: .bd rm ! 6: [ ! 7: .bd \*-f ! 8: ] [ ! 9: .bd \*-r ! 10: ] name ... ! 11: .sh DESCRIPTION ! 12: .it Rm ! 13: removes the entries for one or more files from a directory. ! 14: If an entry was the last link to the file, the file ! 15: is destroyed. ! 16: Removal of a file requires write permission in its directory, ! 17: but neither read nor write permission on the file itself. ! 18: .s3 ! 19: If there is no write permission to a ! 20: file designated to be removed, ! 21: .it rm ! 22: will print the file name, its mode and then ! 23: read a line from the standard input. ! 24: If the line begins with \fBy\fR, the file is removed, ! 25: otherwise it is not. ! 26: The optional argument ! 27: .bd \*-f ! 28: prevents this interaction. ! 29: .s3 ! 30: If a designated file is a directory, ! 31: an error comment is printed unless the optional ! 32: argument ! 33: .bd \*-r ! 34: has been used. ! 35: In that case, ! 36: .it rm ! 37: recursively deletes the ! 38: entire contents of the specified directory. ! 39: To remove directories \fIper se\fR see rmdir(I). ! 40: .sh FILES ! 41: /etc/glob to implement the ! 42: .bd \*-r ! 43: flag ! 44: .sh "SEE ALSO" ! 45: rmdir(I) ! 46: .sh BUGS ! 47: When ! 48: .it rm ! 49: removes the contents of a directory under the ! 50: .bd \*-r ! 51: 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.