Created
April 4, 2022 14:29
-
-
Save axelinternet/c53372ab339ebabd8cea15949732272a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tree displays the directory structure of the current directory. -d option displays only directories. -I option allows to exclude directories that match specific pattern e.g. | |
tree -I node_modules | |
In order to exclude multiple directories at once, their names must be separated by | sign, i.e. | |
tree -I 'node_modules|cache|test_*' | |
This command will skip node_modules, cache directories (along with their content) from the output, and all directories that match test_* wildcard expression. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment