> 文章列表 > Linux tree命令

Linux tree命令

Linux tree命令

参考:https://www.qianng.com/p/442489

linux安装tree命令

首先需要打开linux系统,然后打开终端窗口;2、然后输入命令sudo apt-get install tree,再输入用户密码,完成之后等待安装就好了,通常不用等待很久,十几秒左右就可以了。

        在linux下安装tree命令总共有两个步骤,下面是具体操作:

参考:https://blog.csdn.net/K346K346/article/details/120898034

tree
.
├── 00Tree.html
├── es
│   ├── go.mod
│   ├── go.sum
│   ├── main
│   └── main.go
├── gen_req
│   ├── go.mod
│   └── main.go
└── shell├── cat.sh├── cat.tar├── newfile├── students.txt└── txt3 directories, 12 files
tree -L 1
.
├── 00Tree.html
├── es
├── gen_req
└── shell3 directories, 1 file