Archive for the tag 'shell'

Find a PID with ps + awk

This is really something i need to learn, and never forget. But this is kind of stuff, I always forget. So I write it up right now.
ps aux|gawk ‘$11 == “ssh” {print $2}’

admin November 15th, 2004