** 動機 [#ndff15bc] macではデフォルトでtreeコマンドが使えない ** install [#be36059e] » brew install tree Updating Homebrew... ==> Auto-updated Homebrew! ==> New Formulae ==> Downloading https://ghcr.io/v2/homebrew/core/tree/manifests/1.8.0 ==> Downloading ==> Downloading from https://pkg-==> Pouring tree- -1.8.0.arm64_big_sur.bottle.tar.gz 🍺 /opt/homebrew/Cellar/tree/1.8.0: 8 files, 158.5KB ** use [#w03c026e] » tree *** -Lで階層を指定できる。 [#n117ae13] » tree -L 1 . ├── node_modules ├── package.json ├── s29 ├── s33 » tree -L 2 . ├── node_modules │ ├── @prettier │ ├── linguist-languages │ ├── map-age-cleaner │ ├── mem │ ├── mimic-fn │ ├── p-defer │ ├── php-parser │ └── prettier こんな感じで使う 詳しくはここを見るといいと思う。 https://linux.die.net/man/1/tree ** 著者 [#k2308b52] ** 編集者 [#k2308b52] 藤井 穣: yutaka@worldcraft.co.jp