linux的tree命令

文章目录

linux tree command

  • Centos 是默认不带tree 命令的,如果要使用首先要install tree command
1yum install -y tree
  • 使用tree 显示目录的深度为2级
 1 tree -L 2
 2.
 3├── easy-rsa-old-2.3.3
 4│   ├── configure.ac
 5│   ├── COPYING
 6│   ├── COPYRIGHT.GPL
 7│   ├── distro
 8│   ├── doc
 9│   ├── easy-rsa
10│   └── Makefile.am
11├── frgs.log
12├── frp_0.32.1_linux_amd64
13│   ├── frgs.log
14│   ├── frpc
15│   ├── frpc_full.ini
16│   ├── frpc.ini
17│   ├── frps
18│   ├── frps_full.ini
19│   ├── frps.ini
20│   ├── frps.log
21│   ├── LICENSE
22│   ├── nohup.out
23│   └── systemd
24├── frp_0.32.1_linux_amd64.tar.gz