tree -I 'node_modules'

Category: Navigation & Directory

tree -I 'node_modules'

Display tree excluding a pattern (e.g., node_modules)

Shows the tree but skips folders matching a pattern like 'node_modules'. The -I flag means 'ignore this pattern'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.