본문 바로가기

공부/코딩

[macOS] tree 커맨드로 디렉토리 하위 컨텐츠 한번에 표시하기

반응형

 

환경

OS : macOS

* homebrew 가 설치되어있는 상태여야한다. homebrew 설치방법은 아래 글 참조.

https://romanticdog.tistory.com/55

 

[python/macOS] homebrew 인스톨 및 삭제/homebrew 파이썬 인스톨 및 삭제

homebrew가 도커(docker) 사용할 때나 파이썬 버전을 관리할 때(pyenv,rye) 등 많이 쓰여서 homebrew를 설치하기로 했다.homebrew를 인스톨/삭제 하는 방법부터 homebrew 의 파이썬 삭제하는 방법까지 기록하려

romanticdog.tistory.com

 

 

방법

brew install tree 로 설치가능하다.

% tree ./
zsh: command not found: tree
% brew install tree
...
==> Downloading https://ghcr.io/v2/homebrew/core/tree/manifests/2.1.3
######################################################################### 100.0%
==> Fetching tree
==> Downloading https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:f0ff7ec061de0
######################################################################### 100.0%
==> Pouring tree--2.1.3.arm64_sonoma.bottle.tar.gz
...
% tree ./
.
├── content_map.json
├── data.json
├── download
│   ├── index.html
│   └── index.xml
├── favicon.ico

 

tree를 입력하면 디렉토리 하위 컨텐츠를 한 번에 볼 수 있다.

 

끝.

반응형