首页 > 技术文章 > tree命令

gsblog 2013-11-26 17:40 原文

看到别人的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

 

推荐阅读