Skip to content

Instantly share code, notes, and snippets.

@geryit
Last active June 9, 2018 15:43
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 geryit/ab4eac0eed0d92739b78997c926ad036 to your computer and use it in GitHub Desktop.
Save geryit/ab4eac0eed0d92739b78997c926ad036 to your computer and use it in GitHub Desktop.
alias upgrade="sudo apt-get dist-upgrade -y && sudo apt-get clean && sudo apt-get autoclean -y && sudo apt-get autoremove -y && sudo reboot"
alias apache-log="sudo tail -f /var/log/apache2/error.log"
alias apache-restart="sudo apachectl configtest && sudo systemctl restart apache2"
alias find-big-files="du -aBM 2>/dev/null | sort -nr | head -n 50 | more"
alias find-large-files="cd /;du -aBM 2>/dev/null | sort -nr | head -n 50 | more"
alias space-left="df -h"
alias ram-left="free --human"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment