Linux command tree

From NovaOrdis Knowledge Base
Revision as of 00:24, 6 January 2021 by Ovidiu (talk | contribs) (→‎Mac)
Jump to navigation Jump to search

Internal

Overview

Recursively descends a directory, producing something like this:

a
├── Chart.yaml
├── charts
│   └── b
│       ├── Chart.yaml
│       ├── charts
│       │   └── c
│       │       ├── Chart.yaml
│       │       ├── templates
│       │       │   └── pod.yaml
│       │       └── values.yaml
│       ├── templates
│       │   └── pod.yaml
│       └── values.yaml
├── templates
│   └── pod.yaml
└── values.yaml

Installation

Mac

brew install tree

Linux

# yum install tree	 #RHEL/CentOS 7
# dnf install tree	 #Fedora 22+ and /RHEL/CentOS 8
$ sudo apt install tree	 #Ubuntu/Debian