skip to content
Alvin Lucillo

Print dir tree

/ 1 min read

💻 Tech

To print directory tree, use tree. Install it: sudo apt-get install tree. Use it like so:

  • tree - print the directory tree of current directory
  • tree /some/dir - print the directory tree of the specified directory
  • tree -L 1 . - print the first level directory of the current directory