Linux command tree: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 32: Line 32:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
# yum install tree #RHEL/CentOS 7
yum install tree #RHEL/CentOS 7
# dnf install tree #Fedora 22+ and /RHEL/CentOS 8
dnf install tree #Fedora 22+ and /RHEL/CentOS 8
$ sudo apt install tree #Ubuntu/Debian
sudo apt install tree #Ubuntu/Debian
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 00:24, 6 January 2021

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