728x90
Definition : directory 및 파일을 tree 형식으로 출력
Installation : sudo apt install tree
기본명령어가 아니므로 apt를 이용하여 설치해야한다.
문법 : tree [옵션]
Option
-d | directory 만 표시 |
-f | print the full path for each file. (directory 경로 표시) |
-i | indentation 을 출력하지 않게 한다 (-f) 와 같이 사용하면 좋다. |
-L | hierarchy display depth level 을 정의한다. (ex tree -L 1, tree -L 2) |
-p | 파일 권한까지 표시함 |
-I | [alphabet 대문자 아이] 특정 pattern 의 directory or file display 제외 (ex : tree -I test test 라고 이름이 붙은 directory 나 파일은 제외되고 표시함) |
용례
tree -L 2 : depth 2 만표시
tree -L 2 -p : depth 2, file 권한 표시
tree -L 2 -d : depth 2, directory만 표시
tree -L 2 -d -fi : depth 2 directory 만, no indentation, full path
tree -L 2 -d -I "bitnami" : depth 2, directory only bitnami 이름은 제외하고 표시
'Ubuntu > linux Command' 카테고리의 다른 글
Nuget (0) | 2022.02.10 |
---|---|
Linux command (rcp) (0) | 2021.09.22 |
Linux Command (User list 보기) (0) | 2021.09.09 |
Linux Command (sftp) (0) | 2021.09.06 |
Linux command (scp) (0) | 2021.09.05 |