$
학습 Linux 안내서
ko
XP:0
퀘스트 6Tree Navigator
+150 XP

Visualizing Directory Trees (tree)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

When navigating complex project directories, flat listings from ls make it difficult to visualize nested structures. The tree command recursively lists directory contents in a clear, tree-like ASCII visual hierarchy with branch lines showing directory nesting.

In large repositories, a full recursive tree can produce thousands of lines. To keep output manageable, use the -L switch (e.g., tree -L 2) to restrict visualization depth to a specific number of directory levels.

Visualize your directory hierarchy! First run tree to view the full directory tree starting from your current directory, then run tree -L 2 to constrain the tree view to 2 levels of depth.

명령어 구문 참조

Command / SyntaxDescription
treeDisplay directory structure as a visual tree
tree -L 2Constrain directory tree depth to 2 levels

검증 목표

  • ○
    Run the "tree" command
  • ○
    Run "tree -L 2" to constrain tree depth

퀘스트를 완료할 준비가 되셨나요? 6?