Skip to content

Instantly share code, notes, and snippets.

@MagicAndi
Created November 23, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MagicAndi/eefbfae025609910401f3ac0f360d9c4 to your computer and use it in GitHub Desktop.
Save MagicAndi/eefbfae025609910401f3ac0f360d9c4 to your computer and use it in GitHub Desktop.
List folders in a directory to set depth and then output listing to file. Tested on WSL on Windows 10
tree -d -L 3 -N > /mnt/c/Temp/FolderListing.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment