How To Install Pstree In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Pstree In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

pstree

A convenient tool to show running processes as a tree.

Maintainer: Craig Small



Section: admin

Install pstree

  • Debian apt-get install psmisc Click to copy
  • Ubuntu apt-get install psmisc Click to copy
  • Alpine OS apk add psmisc Click to copy
  • Arch Linux pacman -S psmisc Click to copy
  • Kali Linux apt-get install psmisc Click to copy
  • CentOS yum install psmisc Click to copy
  • Fedora dnf install psmisc Click to copy
  • Raspbian apt-get install psmisc Click to copy
  • macOS brew install pstree Click to copy

A convenient tool to show running processes as a tree.

How to use pstree?

Below are few example commands for pstree that you can use in the terminal.

Display a tree of processes:
pstreeClick to copy
Display a tree of processes with PIDs:
pstree -pClick to copy
Display all process trees rooted at processes owned by specified user:
pstree userClick to copy
Install the latest version of pstree in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the pstree just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of pstree from the respository and install it in your computer/server.