맥OS에서 폴더구조를 보기위한 명령어 tree 설치하기
tree
tree 명령어를 맥에서 실행하려면 설치가 필요하다. 다음은 맥OS에서 tree명령어를 사용하기 위해 설치하는 과정이다.
[1] ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

[2] brew

[3] brew install tree

[4] tree

tree 옵션
-a : 숨겨진 파일 포함해서 모두 표시
-d: 디렉토리 구조만 표시-l디렉토리와 같은 기호 링크를 따라 가서 표시.
-f: 상대 경로로 표시-i들여쓰기를 적용하지 않고 표시
-q: 출력할 수 없는 ‘?’ 문자까지 표시.-N출력할 수 없는 문자까지 모두 표시.
-p: 퍼미션(권한) 설정까지 표시.-u파일 권한자 또는 UID 숫자 표시.
-g: 각 파일의 용량(Bytes) 표시.
-h: 각 파일의 용량 크기를 사람이 보기 편하게 표시.
-D: 수정한 날짜 표시
-F: 뒤에 ‘/’, ‘=’, ‘*’, 또는 ‘|’ 붙여 사용.
-v: 디렉토리 내 파일을 알파벳 순으로 정렬.
-r: 디렉토리 내 파일을 알파벳 역순으로 정렬.
-t: 최근 수정한 파일 순으로 정렬.
-x: 현재 파일 시스템만 나둠.
-n: 컬러 모드 표시 Off.
-C: 컬러 모드 표시 On.
참고: https://araikuma.tistory.com/140