arozwalak
11/15/2014 - 1:34 PM

Bash: bash aliases

Bash: bash aliases


# apt-get aliases
alias apt-update='sudo apt-get update'
alias apt-upgrade='sudo apt-get update && sudo apt-get upgrade'
alias apt-install='sudo apt-get install'
alias apt-remove='sudo apt-get --purge remove'

# apache aliases
alias apacheRestart='sudo service apache2 reload'
alias apacheStart='sudo service apache2 start'
alias apacheStop='sudo service apache2 stop'

# start stop and restart MySQL
alias mysqlStart='sudo service mysql start'
alias mysqlStop='sudo service mysql stop'
alias mysqlRestart='sudo service mysql restart'

alias my-ip='echo "Public IP: " && curl ifconfig.me'