Chinaunix首页 | 论坛 | 博客
  • 博客访问: 32900
  • 博文数量: 13
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 122
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-20 15:08
文章分类

全部博文(13)

文章存档

2015年(9)

2014年(4)

我的朋友

分类: LINUX

2015-01-13 00:23:54

root @test /root ]# mkdir [-mp] [目录名称]
参数说明:
-m :配置文件案的权限喔!直接设定,不需要看 umask 这个内容的脸色!
-p :帮助你直接将上面的目录递归建立起来!
范例:
[root @test /root]# cd tmp
[root @test /tmp]# mkdir test<==建立名称为 test 的目录
[root @test /tmp]# mkdir -p test1/test2/test3/test4 <==直接建立 test2...等上层目录
[root @test /tmp]# mkdir -m 711 testqq  <==建立权限为 711 的目录!
[root @test /tmp]# ll test*
drwxrwxr-x    2 test    test        4096 Feb  6 20:47 test/
drwxrwxr-x    3 test    test        4096 Feb  6 20:48 test1/
drwx--x--x    2 test    test        4096 Feb  6 20:48 testqq
阅读(300) | 评论(0) | 转发(0) |
0

上一篇:  cd 语法

下一篇:HACMP配置总结

给主人留下些什么吧!~~