LoginSignup
0
0

More than 5 years have passed since last update.

Mac treeコマンド ディレクトリの階層を見やすく

Last updated at Posted at 2018-05-13

Macbookで開発をやっていて、リポジトリの階層をREADME.mdに記載した方が新規参画の人にわかりやすいと思い、記載をしようと思ったけどtreeのやり方が分からず、調べたら直ぐ出たのでメモ書き程度に、、、


調べたら【homebrew】を使用すれば、一発解決

homebrewのインストールそのものは以下参照
 ・homebrewのインストール方法(macbook)


インストール方法


brew install tree

treeコマンドの実行

インストールされたら階層を見たいディレクトリでtreeコマンドの実行

$ tree
.
├── img
│   ├── 1.jpg
│   ├── 2.jpg
│   ├── 3.jpg
│   ├── 4.jpg
│   └── 5.jpg
├── index.html
├── infiniteslide.js
├── jquery.pause.min.js
└── readme.md

階層が複雑になってきたときに視覚化できると何かと便利ですね

0
0
0

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
0