介绍两个linux 命令 tree 和 ncdt
简介:
man tree
NAME
tree - list contents of directories in a tree-like format.
树状格式显示目录内容
man ncdt
NAME
ncdt - directory tree printer with extended capabilities
安装:
使用apt-get方式安装
- apt-get install tree
- apt-get install ncdt
使用:
- 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
转载于:https://blog.51cto.com/pppcode/506595