Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

주요 옵션

optionparam의미
-d
List directories only.
-f
Prints the full path prefix for each file.
-i
 Makes tree not print the indentation lines, useful when used in conjunction with the -f option.
-Ipattern

Do not list those files that match the wild-card pattern.


-Ppattern

-Llevel


2 depth만 표시

Code Block
$ tree -L 2

...

Code Block
$ tree -L 2 -d -fi


2 depth, 특정 폴더 제외

Note

tests와 node_moduels 폴더 제외

Code Block
$ tree -L 2 -d -I "node_modules|tests"



Ref