Created
February 24, 2021 17:16
-
-
Save robdmc/28d8be4fe9c54d17c2f2df266d5d84ff to your computer and use it in GitHub Desktop.
Kill unix linux processes by session id. also pstree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: zombies processes ps pstree kill | |
# See all processes with pids and session ids | |
ps -efj | grep -E 'UID|python' | |
# See process tree with pids | |
pstree -ap | |
# Kill processes using session id | |
pkill -s <session_id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment