3 ms·
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
by ianbishop 17y ago
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.
- jefffoster 17y agopkill and pgrep are useful too!
- jncraton 17y agowill grab the pid of any process so that you can subsequently kill it I like to use: killall processname
- spudlyo 17y agoAnd that works just dandy, until that one day you're on a Solaris machine...