tree Command: Navigating Directory Structures

tree -I tmp -C

  • tree: This is a command-line utility that displays the contents of a directory in a tree-like format.
  • -I tmp: This option is used to exclude a specific pattern or directory from the tree view. In this case, it excludes any directories or files with the name “tmp.”
  • -C: This option is used to colorize the output, making it more visually appealing by using different colors for different types of files.

So, when you run the command tree -I tmp -C, it will display the directory structure, excluding anything with the name “tmp” and using colorized output for better readability.

 

 

How to install

brew install tree

 

 

 













Leave a Reply

Your email address will not be published. Required fields are marked *