---
title: Install The Tree Command for Linux on Linux | Snap Store
description: Get the latest version of The Tree Command for Linux for Linux - A directory
  listing command that produces a depth indented listing of files
url: https://snapcraft.io/tree
---

# The Tree Command for Linux (tree)

[林博仁 Buo-ren Lin (brlin)](https://snapcraft.io/publisher/brlin "View all snaps from 林博仁 Buo-ren Lin (brlin)")

* [林博仁 Buo-ren Lin (brlin)](https://snapcraft.io/publisher/brlin "View all snaps from 林博仁 Buo-ren Lin (brlin)")
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 2.1.3+pkg-5852

Install latest/stable of The Tree Command for Linux

---

**Install using the command line**

```
sudo snap install tree
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* tree

---

### License

* GPL-2.0

---

### Last updated

* 1 October 2024 - latest/stable
* 1 October 2024 - latest/candidate

---

### Websites

* [launchpad.net/tree-snap](https://launchpad.net/tree-snap "https://launchpad.net/tree-snap")

---

### Contact

* [bugs.launchpad.net](https://bugs.launchpad.net/tree-snap "https://bugs.launchpad.net/tree-snap")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/tree#report-snap-modal)

---

* [Description](https://snapcraft.io/tree#tab-description)
* [Security](https://snapcraft.io/tree#tab-security)

#### A directory listing command that produces a depth indented listing of files

Tree is a recursive directory listing command that produces a depth indented listing of files, which is colorized ala dircolors if the LS\_COLORS environment variable is set and output is to tty. Tree has been ported and reported to work under the following operating systems: Linux, FreeBSD, OS X, Solaris, HP/UX, Cygwin, HP Nonstop and OS/2.

Note that if you just removed tree from APT distribution you will have to run the following command to regenerate GNU Bash's command search hash so that it will fall back to the command provided by the snap:

```
 hash -r
```

simply logout and re-login the user session will work.

This snap is maintained by 林博仁(Buo-ren, Lin), and is not endorsed or officially maintained by the upstream developers.

---

## Install The Tree Command for Linux on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/tree/arch)

[### CentOS](https://snapcraft.io/install/tree/centos)

[### Debian](https://snapcraft.io/install/tree/debian)

[### elementary OS](https://snapcraft.io/install/tree/elementary)

[### Fedora](https://snapcraft.io/install/tree/fedora)

[### KDE Neon](https://snapcraft.io/install/tree/kde-neon)

[### Kubuntu](https://snapcraft.io/install/tree/kubuntu)

[### Manjaro](https://snapcraft.io/install/tree/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/tree/pop)

[### openSUSE](https://snapcraft.io/install/tree/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/tree/rhel)

[### Ubuntu](https://snapcraft.io/install/tree/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/tree/raspbian)
