home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / rm.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.1 KB  |  52 lines

  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 a file has no write permission,
  20. .it rm
  21. prints the file name and its mode, then
  22. reads a line from the standard input.
  23. If the line begins with \fBy\fR, the file is removed,
  24. otherwise it is not.
  25. The question is not asked if
  26. option
  27. .bd \-f
  28. was given or if the standard input is not a typewriter.
  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.
  52.