# Shell ## Nohup To run command silently nohup command-with-options & ## Kill 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 ## Grep To search **word1** and exclude a **word2** grep "word1" | grep -v "word2" ## Sed Remove blank lines in a file sed '/^$/d' file.input > file.output ## OpenSSL 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