Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install pstree
Linux pstree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown.
Install pstree
#On Mac OS
brew install pstree
#On Fedora/Red Hat/CentOS
yum install psmisc #using psmisc package for pstree
#On Ubuntu/Debian APT
apt-get install psmisc
After above opeation, we can use
# man pstree | less
to check whether the installation is successful.
@darosior
Copy link

darosior commented Aug 16, 2018

Thanks !

@fooofei
Copy link

fooofei commented Aug 22, 2018

Thanks

@Tierce123
Copy link

Tierce123 commented Sep 6, 2018

Thanks.

Question: I want to create a directory which can appears or view by all users. How to do ?

@devharsh
Copy link

devharsh commented Sep 3, 2019

How to install pstree in NetBSD 8.1?

localhost$ pstree
-sh: pstree: not found

@devharsh
Copy link

devharsh commented Sep 3, 2019

How to install pstree in NetBSD 8.1?

localhost$ pstree
-sh: pstree: not found

Found it: https://www.cyberciti.biz/faq/unix-linux-pstree-command-examples-shows-running-processestree/

@benjhamxn
Copy link

benjhamxn commented Oct 28, 2020

Thanks

@muntac
Copy link

muntac commented Dec 13, 2020

Thanks!

@dujingning
Copy link

dujingning commented Oct 12, 2021

Thanks

@KociFanda
Copy link

KociFanda commented Jan 11, 2022

It solved my problem :) I was trying: apt-get install pstree

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment