Linux Cheatsheet

Last edit: 24 May 2018

#Display OS
uname -a

#Delete GZip files older than 14 days
find *.gz -mtime +14 -exec rm {} \;

#mySQL dump
mysqldump --opt -uUSERNAME -pPASSWORD -h HOSTNAME DATABASE_NAME > FILENAME.sql