Skip to content

Instantly share code, notes, and snippets.

@robdmc
Created February 24, 2021 17:16
Show Gist options
  • Save robdmc/28d8be4fe9c54d17c2f2df266d5d84ff to your computer and use it in GitHub Desktop.
Save robdmc/28d8be4fe9c54d17c2f2df266d5d84ff to your computer and use it in GitHub Desktop.
Kill unix linux processes by session id. also pstree
# 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