rm.1

来自「UNIX版本6的源代码」· 1 代码 · 共 52 行

1
52
字号
.th RM I 1/20/73.sh NAMErm  \*- remove (unlink) files.sh SYNOPSIS.bd rm[.bd \*-f] [.bd \*-r] name ....sh DESCRIPTION.it Rmremoves the entries for one or more files from a directory.If an entry was the last link to the file, the fileis destroyed.Removal of a file requires write permission in its directory,but neither read nor write permission on the file itself..s3If a file has no write permission,.it rmprints the file name and its mode, thenreads a line from the standard input.If the line begins with \fBy\fR, the file is removed,otherwise it is not.The question is not asked ifoption.bd \-fwas given or if the standard input is not a typewriter..s3If a designated file is a directory,an error comment is printed unless the optionalargument.bd \*-rhas been used.In that case,.it rmrecursively deletes theentire contents of the specified directory.To remove directories \fIper se\fR see rmdir(I)..sh FILES/etc/glob to implement the.bd \*-rflag.sh "SEE ALSO"rmdir (I).sh BUGSWhen.it rmremoves the contents of a directory under the.bd \*-rflag, full pathnames are not printed in diagnostics.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?