LoginSignup
2
0

More than 3 years have passed since last update.

treeコマンドでディレクトリ構成図を書く

Posted at

下記のようなディレクトリ構成があるとする

sample1
    ├── hoge
    │   └── 1
    │       └── one.txt
    └── huga
        └── 2
            └── two.txt

cd samplesample ディレクトリに移動する。

tree | pbcopytree コマンドの出力結果がクリップボードにコピーされる。

それを貼り付ける。(コマンド実行場所は . になるのであとでディレクトリ名に変える)

.
├── hoge
│   └── 1
│       └── one.txt
└── huga
    └── 2
        └── two.txt
2
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
2
0