Skip to content

Instantly share code, notes, and snippets.

@9a-aaaaaaaa
Created October 3, 2022 13:52
Show Gist options
  • Save 9a-aaaaaaaa/1519ca3676a057c01b6c0193a18a7b9c to your computer and use it in GitHub Desktop.
Save 9a-aaaaaaaa/1519ca3676a057c01b6c0193a18a7b9c to your computer and use it in GitHub Desktop.
linux_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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment