- Linux Shell Scripting Cookbook(Third Edition)
- Clif Flynt Sarath Lakshman Shantanu Tushar
- 65字
- 2021-07-09 19:46:38
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: