0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

配下のディレクトリとファイル構成を階層的に表示してくれるコマンド Tree

Last updated at Posted at 2025-05-12

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" → 特定のディレクトリを除外して表示

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?