Add another example for tree

set level directories deep
This commit is contained in:
Bonnie I-Man Ng 2019-05-16 15:50:37 +08:00 committed by GitHub
parent 7910b94f25
commit f5f7b2bd55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2778,19 +2778,24 @@ script output.txt
# to logout the screen session (stop saving the contents), type exit. # to logout the screen session (stop saving the contents), type exit.
``` ```
##### list contents of directories in a tree-like format. ##### List contents of directories in a tree-like format.
```bash ```bash
tree tree
# go to the directory you want to list, and type tree (sudo apt-get install tree) # go to the directory you want to list, and type tree (sudo apt-get install tree)
# output: # output:
# one/ # home/
# └── two # └── project
# ├── 1 # ├── 1
# ├── 2 # ├── 2
# ├── 3 # ├── 3
# ├── 4 # ├── 4
# └── 5 # └── 5
# #
# set level directories deep (e.g. level 1)
tree -L 1
# home/
# └── project
``` ```
##### Set up virtualenv(sandbox) for python ##### Set up virtualenv(sandbox) for python