Skip to content

Instantly share code, notes, and snippets.

@col
Created February 1, 2013 00:39
Show Gist options
  • Save col/4688122 to your computer and use it in GitHub Desktop.
Save col/4688122 to your computer and use it in GitHub Desktop.
Some useful unix commands for managing processes. Basic stuff but very useful.
# List all processes of type for a user
pgrep -u <user> <process name>
# Example:
pgrep -u app_user ruby
# Kill all processes of type for a user
killall -u <user> <process name>
# Example:
killall -u app_user ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment