NavigationCLI Manual
$tree
Display directory structure in a recursive visual tree diagram.
BefehlssyntaxPOSIX Standard
tree [OPTIONS] [DIRECTORY]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
`tree` is a recursive directory listing program that produces a depth-indented visual tree of files and folders.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| -L [level] | Max display depth of the directory tree. |
| -d | List directories only without listing files. |
| -a | All files are listed including hidden files. |
Praktische Anwendungsbeispiele
#1Visualize directory tree up to depth 2
tree -L 2 /home/userOutputs folder tree hierarchy.
Verwandte Linux-Befehle
$findDateioperationen
Durchsuchen Sie Verzeichnishierarchien nach Dateien basierend auf Name, Typ, Größe oder Änderungsdatum.
$lsNavigation
Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.
$cdNavigation
Wechseln Sie das aktuelle Arbeitsverzeichnis im Dateisystem.
$pwdNavigation
Druckt den absoluten Pfad des aktuellen Arbeitsverzeichnisses.
$whichNavigation
Locate the executable binary path of a command in system PATH.