Run 'tree' in Terminal

Hi,

I’m trying to run the tree command in the terminal to get an ASCII art of my file tree. But when I run tree in the terminal, I get the su: tree: command not found response. How would I run tree in the terminal, then?

No, they have it turned off, probably so people don’t use it to see files other than in their own app directory.

(ie. trying to run a command like tree ~ or tree / could let you see files behind the app folder)

Too bad :slightly_frowning_face: Anyone know any generators that can generate something similar to the tree command for a GitHub repo?

@khalby786
https://docs.github.com/en/rest/reference/git#trees

1 Like

@khalby786
https://xiaoluoboding.github.io/repository-tree/

2 Likes

Thanks a lot! :slightly_smiling_face:

2 Likes