I’m looking for a script to generate the graphical-ish textual representations of directory structures that you see around. Something that I can run like this:
james@computer:/.../basedir$ listdir .
basedir
|-firstsubdir
| |-file
| `-subsubdir
| |-file1
| |-file2
| |-file3
| `-file4
`-secondsubdir
james@computer:/.../basedir$
Presumably an established script exists? Must I write it?
tree(on Windows as well as Linux – might require aapt-get install treeor similar on Linux).Type
tree /?(windows) orman treefor the command line options.