xgqfrms-GitHub / Node-CLI-Tools

一个 Node.js CLI 工具,查看指定 git 仓库的 commit history ; 能对 commit history 进行搜索; 能查看指定时间范围的 commit history.
https://node-cli-tools.xgqfrms.xyz
MIT License
6 stars 2 forks source link

tree #20

Open xyzdata opened 6 years ago

xyzdata commented 6 years ago

tree

windows

image

Install tree command

https://lintut.com/use-tree-command-in-linux/

Unix (CentOS)

image

xyzdata commented 6 years ago

npm link

image

xyzdata commented 6 years ago

bad

image

ok

image

xgqfrms commented 5 years ago

bug

E: Unable to locate package tree

https://www.cnblogs.com/xgqfrms/p/10729411.html

solution


# 1. update
$ sudo apt-get update

# 2. install
$ sudo apt install tree
xgqfrms commented 9 months ago

tree -L

# ignore one folder
$ tree -I node_modules

# ignore multi folders
$ tree -I "node_modules|cache|test_*"

$ tree -I "node_modules|bower_components"

# tree level
$ tree -L 3 -I "node_modules|bower_components"
# tree level
$ tree -L 3 -I "node_modules"

$ tree -L 2 -I "000-xyz"

https://www.cnblogs.com/xgqfrms/p/10824747.html

https://www.cnblogs.com/xgqfrms/p/10729411.html

 $ tree -L 2 -I "node_modules|000-xyz|test|templates|bin"