Tree
tree
配下のディレクトリとファイル構成を階層的に表示してくれるコマンドです。
例
$ tree
.
├── README.md
├── lib
│ ├── main.dart
│ └── feature
│ └── todo
│ └── presentation
└── pubspec.yaml
コマンドが入っていない場合(mac)
brew install tree
よく使うオプション
-
tree -L 2 → 階層を2階層までに制限
-
tree -a → .gitignoreされてるような隠しファイルも表示
-
tree -I "build|.git" → 特定のディレクトリを除外して表示