unix 上有没有办法打印出文件结构,比如 Bootstrap 的入门页面?
bootstrap/
??? css/
? ??? bootstrap.css
? ??? bootstrap.min.css
? ??? bootstrap-theme.css
? ??? bootstrap-theme.min.css
??? js/
? ??? bootstrap.js
? ??? bootstrap.min.js
??? fonts/
??? glyphicons-halflings-regular.eot
??? glyphicons-halflings-regular.svg
??? glyphicons-halflings-regular.ttf
??? glyphicons-halflings-regular.woff
Run Code Online (Sandbox Code Playgroud)
(来自http://getbootstrap.com/getting-started/#whats-included)
有没有一个命令可以让它完全像那样打印出来?
看看树命令。
http://mama.indstate.edu/users/ice/tree/
对于像 debian 这样的发行版:
sudo apt-get install tree
Run Code Online (Sandbox Code Playgroud)