I’m working with a linux machine that I’m not familiar with, so I’d like to get a txt print out of its folder structure. I remember having written a script that does something similar in php, but can’t find it. I’m looking for any of the following that might help me with this task:
- a bash script
- an existing linux command line
- a php script
However, on a typcial linux box, I’d rather not run this from the directory root. If you do and get a couple of permission errors, you could send the errors to
/dev/null