linux命令mkdir介绍(4)

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

-m:设置文件夹权限,类似chmod
-p:递归创建目录 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/mkdir-command-description/

案例:


其他参数:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/mkdir-command-description/

-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 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/mkdir-command-description/

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/mkdir-command-description/文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/mkdir-command-description/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

On this day in past years
December
13
 
Byrd
  • by Published onDecember 13, 2017
  • 原文链接:https://note.t4x.org/rebuilding/mkdir-command-description/
匿名

Comment

Anonymous

Slide puzzle verification.