rmdir 中文man页面

系统
rmdir 删除空目录。如果所给出的目录不为空,则报错

名字

rmdir -删除空目录  

总览

rmdir[options]directory...

POSIX 选项: [-p]

GNU 选项(缩写):

[-p] [--ignore-fail-on-non-empty] [--help] [--version] [--]  

描述

rmdir 删除空目录。如果所给出的目录不为空,则报错  

POSIX 选项

-p
如果目录由多个路径名组成,从***一个路径名开始依次删除,直到所有的路径名都被删完。例如:命令'rmdir -p a/b/c'按照'rmdir /a/b/c'; 'rmdir a/b'; 'rmdir a'的顺序删除目录。

GNU 选项

--ignore-fail-on-non-empty
通常,rmdir拒绝删除非空目录。这个选项将使命令忽略非空目录而进行删除操作。(更新见fileutils-4.0)
-p, --parents
同上。

GNU 标准选项

--help
在标准输出上显示使用信息并顺利退出。
--version
在标准输出上显示版本信息并顺利退出
--
终端选项列表。

环境变量

变量LANG,LC_ALL,LC_CTYPE,LC_MESSAGES按常规定义。  

遵循

POSIX 1003.2  

应用举例

命令'rmdir foo'将删除空目录foo。要删除一个非空目录,并且包括其下属所有内容,可以使用命令'rm -rfoo'。  

注意

本文出自 fileutils-4.0,其他版本肯会有微小差别。任何添加或纠错意见请寄:aeb@cwi.nl,程序Bugs 请告知:fileutils-bugs@gnu.ai.mit.edu  

#p#

NAME

rmdir - remove empty directories  

SYNOPSIS

rmdir [OPTION]... DIRECTORY...  

DESCRIPTION

Remove the DIRECTORY(ies), if they are empty.

--ignore-fail-on-non-empty
ignore each failure that is solely because a directory is non-empty
-p, --parents
remove DIRECTORY, then try to remove each directory component of that path name. E.g., `rmdir -p a/b/c' is similar to `rmdir a/b/c a/b a'.
-v, --verbose
output a diagnostic for every directory processed
--help
display this help and exit
--version
output version information and exit

AUTHOR

Written by David MacKenzie.  

REPORTING BUGS

Report bugs to <bug-coreutils@gnu.org>.  

COPYRIGHT

Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

SEE ALSO

The full documentation for rmdir is maintained as a Texinfo manual. If the info and rmdir programs are properly installed at your site, the command

info coreutils rmdir

should give you access to the complete manual

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man
点赞
收藏

51CTO技术栈公众号