To run command silently
nohup command-with-options &
To kill a program base on its PROCESS_NAME (don't work perfectly and could be dangerous for some PROCESS_NAME)
ps -ef | grep PROCESS_NAME | grep -v grep | awk '{print $2}' | xargs kill -9
To search word1 and exclude a word2
grep "word1" | grep -v "word2"
Remove blank lines in a file
sed '/^$/d' file.input > file.output
To generate .pem from a RSA key
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
To generate .pem from a DSA key
openssl dsa -in ~/.ssh/id_dsa -outform pem > id_dsa.pem