How To Install Pstree In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Install pstree
-
Debian
apt-get install psmiscClick to copy -
Ubuntu
apt-get install psmiscClick to copy -
Alpine OS
apk add psmiscClick to copy -
Arch Linux
pacman -S psmiscClick to copy -
Kali Linux
apt-get install psmiscClick to copy -
CentOS
yum install psmiscClick to copy -
Fedora
dnf install psmiscClick to copy -
Raspbian
apt-get install psmiscClick to copy -
macOS
brew install pstreeClick 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 copyDisplay a tree of processes with PIDs:pstree -pClick to copyDisplay 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.




