프로그램/ubuntu

Show Full files or directory with tree format

mulderu 2017. 2. 20. 16:56

가끔 디렉토리 구조를 본다던가, 파일리스트를 트리형식으로 보고 싶을때가 있습니다.

심플한 이름의툴 "tree" 를 이용하시면 END.


ubuntu : sudo apt-get install tree


in MAC

mulder@~/Downloads/openslide-3.4.1$ brew install tree

==> Downloading https://homebrew.bintray.com/bottles/tree-1.7.0.sierra.bottle.1.tar.gz

######################################################################## 100.0%

==> Pouring tree-1.7.0.sierra.bottle.1.tar.gz

🍺  /usr/local/Cellar/tree/1.7.0: 7 files, 113.3K

mulder@~/Downloads/openslide-3.4.1$ 



Example

   :: 폴더구조만 보기

mulder@~/Downloads/openslide-3.4.1$ tree -d

.

├── doc

│   └── html

├── m4

├── src

├── test

└── tools


6 directories

mulder@~/Downloads/openslide-3.4.1$ 


   :: 전체보기

mulder@~/Downloads/openslide-3.4.1$ tree

.

├── CHANGELOG.txt

├── CONTRIBUTING.txt

├── LICENSE.txt

├── Makefile.am

├── Makefile.in

├── README.txt

├── aclocal.m4

├── compile

├── config.guess

├── config.h.in

├── config.log

├── config.sub

├── configure

├── configure.ac

├── depcomp

├── doc

│   ├── Doxyfile

│   └── html

│       ├── arrowdown.png

│       ├── arrowright.png

│       ├── bc_s.png

│       ├── bdwn.png