Linux Shell Scripting Cookbook(Third Edition)
上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: