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

This comment has been minimized.

Copy link

@darosior darosior commented Aug 16, 2018

Thanks !

@fooofei

This comment has been minimized.

Copy link

@fooofei fooofei commented Aug 22, 2018

Thanks

@Tierce123

This comment has been minimized.

Copy link

@Tierce123 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

This comment has been minimized.

Copy link

@devharsh devharsh commented Sep 3, 2019

How to install pstree in NetBSD 8.1?

localhost$ pstree
-sh: pstree: not found

@devharsh

This comment has been minimized.

Copy link

@devharsh 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

This comment has been minimized.

Copy link

@benjhamxn benjhamxn commented Oct 28, 2020

Thanks

@muntac

This comment has been minimized.

Copy link

@muntac muntac commented Dec 13, 2020

Thanks!

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