linux 命令

rmdir 空目录

英文原意:remove empty directories

只能删除空目录。

例如:

xiaolu@bogon:~$ ls
bols  japan
xiaolu@bogon:~$ rmdir bols
xiaolu@bogon:~$ ls
japan
xiaolu@bogon:~$ rmdir japan
rmdir: failed to remove ‘japan’: Directory not empty
xiaolu@bogon:~$ 
原文地址:https://www.cnblogs.com/xiaoluweb/p/4741968.html