标签:选项 direct sam creat create not 目录 创建 directory
创建目录 mkdir
语法:
mkdir (选项)(参数)
选项
-p 创建一大串级联目录
-v 每次创建新目录都显示信息
示例:
[root@aminglinux ~]# mkdir dir1
[root@aminglinux ~]# mkdir /root/dir2 /root/dir3
[root@aminglinux ~]# mkdir /root/{dir4,dir5}
[root@aminglinux ~]# mkdir -v /root/dir{6,7}
mkdir: created directory ‘/root/dir6‘
mkdir: created directory ‘/root/dir7‘
[root@aminglinux ~]# mkdir -v /root/dir8/111/22
mkdir: cannot create directory ‘/root/dir8/111/22‘: No such file or directory
[root@aminglinux ~]# mkdir -pv /root/dir8/111/22
mkdir: created directory ‘/root/dir8‘
mkdir: created directory ‘/root/dir8/111‘
mkdir: created directory ‘/root/dir8/111/22‘
[root@aminglinux ~]# mkdir -pv /root/{sambo/{dir9,dir10},dir11}
mkdir: created directory ‘/root/sambo‘
mkdir: created directory ‘/root/sambo/dir9‘
mkdir: created directory ‘/root/sambo/dir10‘
mkdir: created directory ‘/root/dir11‘
标签:选项 direct sam creat create not 目录 创建 directory
原文地址:https://www.cnblogs.com/sambo510/p/9182112.html