mkdir
- mkdir 创建文件命令;
[root@VM_16_14_centos ~]# mkdir oldboy_dir
[root@VM_16_14_centos ~]# ls
oldboy_dir
2.mkdir a b c 创建多个目录
[root@VM_16_14_centos ~]# mkdir a b c
[root@VM_16_14_centos ~]# ls
a b c
3.根据数字序列创建文件
[root@VM_16_14_centos ~]# mkdir stu{1..10}
[root@VM_16_14_centos ~]# ls
stu1 stu2 stu3 stu4 stu5 stu6 stu7 stu8 stu9 stu10
-p 递归创建目录
[root@VM_16_14_centos /]# mkdir /www/wwwroot/boot
[root@VM_16_14_centos /]# ls /www/wwwroot/boot
boot
tree
1.tree以树形结构显示内容
|-- backup
| |-- database
| | `-- chuanhai.sql
| |-- file_history
| | |-- home
| | | |-- starrtc-server
| | | | `-- web-supported
| | | | |-- starchatroom.key
| | | | | `-- 1602044981
| | | | |-- starchatroom.pem
| | | | | |-- 1602044842
| | | | | `-- 1602045018
| | | | |-- starmsg.key
| | | | | |-- 1602044875
| | | | | `-- 1602044986
| | | | |-- starmsg.pem
| | | | | `-- 1602045022
| | | | |-- starsrc.key
-L 数字,显示层级level
[root@VM_16_14_centos www]# tree -L 1
.
|-- backup
|-- cc.sh
|-- cj.sh
|-- dd.sh
|-- dome
|-- jc.php
|-- node
|-- oldboy_dir
|-- php_session
|-- Recycle_bin
|-- server
|-- shell
|-- siege-4.0.4
|-- siege-4.0.4.tar.gz
|-- swap
|-- test.txt
|-- wwwlogs
`-- wwwroot