4 examples for ps
#Displays all of the running processes on a machine which contain the word "caseysProcess"
ps aux | grep caseysProcess
# get the pids of all processes matching a string (ruby, in this case)
# it also skips the pid of the current grep process
ps aux | grep ruby | grep -v grep | awk '{ print $2 }' }'