News for hackers. Stuff that matters.
Re:Unix tricks by niggler on Thursday March 07, 2013 @10:08AM (#5337959)
1. `man pgrep` is your friend (you save two greps, and TBH the `grep -v grep` should be a hint that there's a better way)

2. In my experience on Debian (granted this was in 2010), there is a noticeable performance difference between `htop` and `top`.

4. ssh-agent stores the password in memory and is erased on reboot. OTOH If you use a passwordless key file, anyone can use it if they have the key.

Re:Unix tricks by jerf on Thursday March 07, 2013 @11:18AM (#5338409)
Using ssh-agent also means you can practically put a very large pass phrase on your SSH key, because you'll only type it infrequently. Good luck brute forcing my passphrase.
Re:Unix tricks by npsimons on Thursday March 07, 2013 @11:22AM (#5338442)
I'm pretty sure ssh-agent doesn't store the password, but the private key. Also, the fact that it supports timed expire (and can be setup to drop keys upon events such as screen lock) make it a wiser choice than passwordless keys.
Re:Unix tricks by gingerlime on Friday March 08, 2013 @04:21AM (#5342629)
That's correct. And ssh-agent doesn't give access to the private key either, only to perform operations like signing. The only way to extract the key is to search it in the process memory, which I believe would requires root level access.
Re:Unix tricks by jfb on Thursday March 07, 2013 @10:21AM (#5338067)
1. I always went with

  % ps auwx | grep '[f]oo' | awk '{ print $2; }'