介紹兩個linux 命令 tree 和 ncdt linux
簡介:sql
man treeide
NAME
tree - list contents of directories in a tree-like format.
樹狀格式顯示目錄內容spa
man ncdtorm
NAME
ncdt - directory tree printer with extended capabilitiesdns
安裝:ip
使用apt-get方式安裝get
- apt-get install tree
- apt-get install ncdt
使用:
it
- keke@keke-VirtualBox /etc $ tree ppp/
- ppp/
- |-- chap-secrets
- |-- ip-down
- |-- ip-down.d
- | |-- 0000usepeerdns
- | `-- 0dns-down
- |-- ip-up
- |-- ip-up.d
- | |-- 0000usepeerdns
- | `-- 0dns-up
- |-- ipv6-down
- |-- ipv6-down.d
- |-- ipv6-up
- |-- ipv6-up.d
- |-- options
- |-- options.pptp
- |-- pap-secrets
- |-- peers [error opening dir]
- |-- pppoe_on_boot
- `-- resolv
- keke@keke-VirtualBox /etc $ ncdt ppp/
- `-- [ 46,504] ppp/
- |-- [ 4,096] ipv6-down.d
- |-- [ 784] ipv6-down
- |-- [ 80] chap-secrets
- |-- [ 2,763] ip-down.d
- | |-- [ 2,204] 0dns-down
- | `-- [ 559] 0000usepeerdns
- |-- [ 1,754] ip-down
- |-- [ 1,759] options.pptp
- |-- [ 922] ipv6-up
- |-- [ 1,628] pap-secrets
- |-- [ 4,096] peers
- |-- [ 4,915] ip-up.d
- | |-- [ 891] 0000usepeerdns
- | `-- [ 4,024] 0dns-up
- |-- [ 4,096] resolv
- |-- [ 1,892] ip-up
- |-- [ 4,096] ipv6-up.d
- |-- [ 13,486] options
- `-- [ 137] pppoe_on_boot