rmdir 中文man頁面
名字
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

















