Pipes, grep and such come in handy in many applications.
For example:
ps -e | grep processname
will grab the pid of any process so that you can subsequently kill it.
sudo !! (run last command as sudo) is great too when you forget to type sudo on a regular basis like me.