Created
February 1, 2013 00:39
-
-
Save col/4688122 to your computer and use it in GitHub Desktop.
Some useful unix commands for managing processes. Basic stuff but very useful.
This file contains 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
# 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