Skip to content

Instantly share code, notes, and snippets.

@MattLoyeD
Last active December 19, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattLoyeD/6028181 to your computer and use it in GitHub Desktop.
Save MattLoyeD/6028181 to your computer and use it in GitHub Desktop.
Linux Shell Basic Commands
# 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