mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 22:07: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.
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user