安裝tree:
sudo apt-get install tree
tree command:
-L 顯示最大到第幾層。(ex:tree -L 3)
-p 顯示權限。
-D 最後更改時間。
-i 不以階層狀顯示。
-d 只顯示目錄。
example:
tree -L 2
result:
.
|-- backbone.js
|-- backbone-min.js
|-- docs
| |-- backbone.html
| |-- backbone-localstorage.html
| |-- docco.css
| |-- images
| |-- jsl.conf
| `-- todos.html
|-- examples
| |-- backbone-localstorage.js
| `-- todos
|-- index.html
|-- index.js
|-- LICENSE
|-- package.json
|-- Rakefile
|-- README.md
`-- test
|-- collection.js
|-- events.js
|-- model.coffee
|-- model.js
|-- noconflict.js
|-- router.js
|-- setdomlibrary.js
|-- speed.js
|-- sync.js
|-- test-ender.html
|-- test.html
|-- test-zepto.html
|-- vendor
`-- view.js
轉換成html:
command:
tree -H {domain}
ex:
tree -H http://www.sparrowflyer.co.cc/ > tree.html