Skip to content

Instantly share code, notes, and snippets.

@leafsummer
Created May 23, 2016 02:45
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save leafsummer/94beb97f62926b7e1fc399081f4ac45f to your computer and use it in GitHub Desktop.
Save leafsummer/94beb97f62926b7e1fc399081f4ac45f to your computer and use it in GitHub Desktop.
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.
@KociFanda
Copy link

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

Thanks

@9a-aaaaaaaa
Copy link

Thanks!

@yataosu
Copy link

yataosu commented Dec 24, 2022

Thanks!

@n2qcn
Copy link

n2qcn commented Jan 18, 2024

yup, first google hit.. thanks!

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