7 examples for tree

{{ score }}
  # Display only the directories in tree format 
tree -d
        
{{ score }}
  # display all files and folders in a 'tree' layout
tree ~
        
{{ score }}
  # Shows absolute filenames of all files in current directory and subdirectories.
tree -i -f .
        
{{ score }}
  # List files and folders in the current directory in 'tree' format
tree -a
        
{{ score }}
  # Execlude files pattern separated by a vertical bar. (do not include trailing slash for folders)
tree -I "node_modules|bin"
        
{{ score }}
  # Print the full path for each file.
tree -f
        
{{ score }}
  # Show only the first 3 levels of folders:
tree -d -L 3