動機 †

macではデフォルトでtreeコマンドが使えない

↑

install †

» 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 †

» tree
↑

-Lで階層を指定できる。 †

» 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

こんな感じで使う

↑

著者 †

藤井 穣: yutaka@worldcraft.co.jp


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS