Last active
December 19, 2015 22:29
-
-
Save MattLoyeD/6028181 to your computer and use it in GitHub Desktop.
Linux Shell Basic Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all files heavier >20M / human readable | |
find / -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' | |
# Find all heavy folders | |
du -sh /* | |
# OR | |
du -h | sort -h | |
# Silent Curl for cron ? | |
curl --silent http://domain.com/cron.php | |
# Cron syntax | |
@hourly root sh blablah.sh > /dev/null | |
# Human readble disk space | |
df -h | |
# Backup site to FTP (for cron) | |
# See cron_save_files_ftp.sh in my gist repo | |
#Backup SQL to FT (for cron) | |
#See cron_save_sql_ftp.sh in my gist repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment