• 우분투에서는 기본설치가 아니므로 설치.

Install

sudo apt install tree

Usage

  • tree – show folder and file tree current directory
  • tree dir-name – show folder and file tree dir-name
  • tree -a – show all dir and files (hidden dir also)
  • tree -d – show directory only
  • tree -f – show path prefix
  • tree -o output.txt – save result to output.txt

Reference