mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 13:57:01 +00:00
Add another example for tree
set level directories deep
This commit is contained in:
parent
7910b94f25
commit
f5f7b2bd55
11
README.md
11
README.md
@ -2778,19 +2778,24 @@ script output.txt
|
||||
# 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
|
||||
tree
|
||||
# go to the directory you want to list, and type tree (sudo apt-get install tree)
|
||||
# output:
|
||||
# one/
|
||||
# └── two
|
||||
# home/
|
||||
# └── project
|
||||
# ├── 1
|
||||
# ├── 2
|
||||
# ├── 3
|
||||
# ├── 4
|
||||
# └── 5
|
||||
#
|
||||
|
||||
# set level directories deep (e.g. level 1)
|
||||
tree -L 1
|
||||
# home/
|
||||
# └── project
|
||||
```
|
||||
|
||||
##### Set up virtualenv(sandbox) for python
|
||||
|
Loading…
Reference in New Issue
Block a user