tre
Show the contents of the current directory as a tree. tldr-pages
On several platforms
Several platforms
Show the contents of the current directory as a tree. Respects the .gitignore settings by default.
Print directories only
tre --directoriesIdentifyPrint JSON containing files in the tree hierarchy instead of the normal tree diagram
tre --jsonIdentifyPrint files and directories up to the specified depth limit (where 1 means the current directory)
tre --limit depthIdentifyPrint all hidden files and directories using the specified colorization mode
tre --all --color automaticIdentifyPrint files within the tree hierarchy, assigning a shell alias to each file that, when called, will open the associated file using the provided command (or in $EDITOR by default)
tre --editor commandIdentifyPrint files within the tree hierarchy, excluding all paths that match the provided regex
tre --exclude regexIdentifyDisplay help
tre --helpIdentifyDisplay version
tre --versionIdentify