Skip to content

Instantly share code, notes, and snippets.

@jasonleonhard
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonleonhard/6005d103ba72b875db3b to your computer and use it in GitHub Desktop.
Save jasonleonhard/6005d103ba72b875db3b to your computer and use it in GitHub Desktop.
p() {
if [[ $1 ]]; then
ps aux | grep -i $1
else
ps aux | less
fi
}
alias cpu='top -o cpu -s 8 -n 11'
pk() {
pkill -9 -f $1; # BEST: most process pkill -9 -f ___
kill -9 $1; # Activity monitor can be kill, not pkill, nor killall
killall -c $1; # this one works for ending mongod
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment