3

Linux常用命令-11:rmdir

 2 years ago
source link: https://xugaoxiang.com/2022/06/03/linux-cmds-11-rmdir/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

rmdir 命令作用是删除空的目录,而且只能删除空目录。一般很少使用,直接用 rm 替代

语法格式 : rmdir [参数] [目录名称]

常用参数:

c1823af0379c155a.png
# 删除空目录dir
rmdir dir

# 递归删除,与 rm -rf test1 作用相同
rmdir -p test1/test2/test3

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK