Linux Command One-Liners
Nice list, here are suggestions for improving a few of the commands:<p><pre><code>  Generate Random Passwords
  >_ < /dev/urandom  tr -dc _A-Z-a-z-0-9 | head -c6
</code></pre>
This produces a 6-character password which only has 35 bits of entropy. It also doesn't print a newline, causing the password to be on the same line as the next prompt. Better to use something like:<p><pre><code>  >_ < /dev/urandom  tr -dc _A-Z-a-z-0-9 | head -c12 && echo
</code></pre>
Or the "pwgen" utility which can do this for you.<p><pre><code>  Find the process that is using a certain port e.g. port 3000
  >_  lsof -P | grep ':30000'
</code></pre>
This command will be extremely slow on large systems with a lot of open files. It is essentially listing every open file (the -P flag just inhibits port mappings from e.g. "port 22" to "SSH") and then grepping the output. Much better to run:<p><pre><code>  >_  lsof -i :30000
</code></pre>
Which is not only shorter, but much faster as it directly gets info about that port.<p><pre><code>  Add your public SSH key to a server in one command
  >_  cat .ssh/id_rsa.pub | ssh hostname 'cat >> .ssh/authorized_keys'
</code></pre>
This is what the "ssh-copy-id" utility, which is part of the openssh-client package, does already.<p><pre><code>  Harder, Faster, Stronger SSH clients
  >_  ssh -4 -C -c blowfish-cbc
</code></pre>
All three of those points are debatable with that command. Just use the defaults.