linux命令mkdir介绍(4)

  • A+
所属分类:Rebuilding

mkdir命令主要用于建立文件夹,是一个默认安装的用户命令:
参数:

-m:设置文件夹权限,类似chmod
-p:递归创建目录

案例:

其他参数:

-v:打印出建立文件夹的说明
-Z:--context=CTX
set the SELinux security context of each created directory to CTX
When COREUTILS_CHILD_DEFAULT_ACLS environment variable is set, -p/--parents option respects default umask and ACLs,
as it does in Red Hat Enterprise Linux 7 by default

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: