Linux 教程
Linux tree命令用于以樹狀圖列出目錄的內容。
執(zhí)行tree指令,它會列出指定目錄下的所有文件,包括子目錄里的文件。
tree [-aACdDfFgilnNpqstux][-I <范本樣式>][-P <范本樣式>][目錄...]
參數(shù)說明:
以樹狀圖列出當前目錄結構??芍苯邮褂萌缦旅睿?/p>
tree
該命令有如下輸出結果:
# tree #以樹狀圖列出當前目錄結構 . #當前目錄結構 |-- README |-- examples.desktop |-- file |-- file.new |-- index.htm |-- test | |-- README | |-- file | |-- testfile | |-- testfile1 | |-- xaa | |-- xab | |-- xac | |-- xad | |-- xae | |-- xaf | |-- xag | |-- xah | `-- xai |-- test.tar.gz |-- test.zip |-- testfile |-- testfile.new |-- testfile.patch |-- testfile1 |-- testfile2 |-- testfile3 |-- xaa |-- xab |-- xac |-- xad |-- xae |-- xaf |-- xag |-- xah |-- xai |-- 345205254345205261347232204 |-- 345233276347211207 | |-- 075b5c2bb1628c1a5343c10a.jpg | |-- 0c978fe989ac787e799757095719d3c4.jpg | |-- 20050726194826866443.jpg | |-- 20061113171548785122.jpg | |-- 2007102221576687.jpg | |-- 39.jpg | |-- 434887ec4340916a78f0559a.jpg | |-- 498da016ac02fb2bc93d6d08.jpg | |-- 7b284f5a0f854da2f3bf90b204149a34.jpg | |-- 9196c030d342a68d5edf0e98.jpg | |-- a56c5a90de15c8a9a977a4cc.jpg | |-- c74f62167c9d2b244a90a79e.jpg | `-- img13.jpg |-- 346226207346241243 |-- 346241214351235242 |-- 346250241346235277 |-- 350247206351242221 `-- 351237263344271220 8 directories, 48 files #統(tǒng)計信息,該目錄共8個子目錄,48個文件其他擴展