tree

tree란?

Directory 구조를 볼 수 있는 Linux Command이다.

예제

일반 tree 명령어.

cd grpc-demo
tree
.
├── bin
│   └── server
├── client
├── go.mod
├── go.sum
├── hello
│   ├── hello_grpc.pb.go
│   └── hello.pb.go
├── nohup.out
├── proto
│   └── hello.proto
└── server
    └── main.go

6 directories, 8 files

-F

tree -F
./
├── bin/
│   └── server*
├── client/
├── go.mod
├── go.sum
├── hello/
│   ├── hello_grpc.pb.go
│   └── hello.pb.go
├── nohup.out
├── proto/
│   └── hello.proto
└── server/
    └── main.go

6 directories, 8 files

-C (color)

tree -CF

–dirsfirst (directory 우선 출력)

tree -CF --dirsfirst
./
├── bin/
│   └── server*
├── client/
├── hello/
│   ├── hello_grpc.pb.go
│   └── hello.pb.go
├── proto/
│   └── hello.proto
├── server/
│   └── main.go
├── go.mod
├── go.sum
└── nohup.out

6 directories, 8 files