![Linux Shell Scripting Cookbook(Third Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/161/36701161/b_36701161.jpg)
上QQ阅读APP看书,第一时间看更新
HTML output for tree
This command creates an HTML file with the tree output:
$ tree PATH -H http://localhost -o out.html
Replace http://localhost with the URL where you are planning to host the file. Replace PATH with a real path for the base directory. For the current directory, use . as PATH.
The web page generated from the directory listing will look as follows:
![](https://epubservercos.yuewen.com/466B67/19470408901644806/epubprivate/OEBPS/Images/Ch03_img.jpg?sign=1739335396-ioZdKiBpsGZb11sUFg2w06zMXSYMnoOn-0-ff95cd03f9684be439f352ce984cd165)