tree命令

看到别人的README文档中,经常看到如下的图:

是通过tree命令

tree

tree命令有很多参数,具体可以查看man

[root@typhoeus79 code]# tree -L 1 Python-2.7.6
Python-2.7.6
|-- Demo
|-- Doc
|-- Grammar
|-- Include
|-- LICENSE
|-- Lib
|-- Mac
|-- Makefile.pre.in
|-- Misc
|-- Modules
|-- Objects
|-- PC
|-- PCbuild
|-- Parser
|-- Python
|-- README
|-- RISCOS
|-- Tools
|-- config.guess
|-- config.sub
|-- configure
|-- configure.ac
|-- install-sh
|-- pyconfig.h.in
|-- setup.py
`-- tags
原文地址:https://www.cnblogs.com/gsblog/p/3443788.html