I need to save all of the results of the command tree in a txt file. The objective is to save this data in a data base for later work in php and html.
The main objective is to expose the structure on a web page to determine the structure of the folders.
How can I do this? Any ideas?
Update
I found this command on Ask Ubuntu: tree > result.list. It's possible to save the data and result of the command tree to a text file. But, do you have any idea how I can use and read on environment web?