Handy frequently used useful bash shell script aliases

alias html='cd /var/www/html/'

alias gs='git status'

alias gp='git pull'

alias ga='_ga () { git add "$@"; }; _ga'

alias clr='clear'

alias ..='cd ..'

alias 7='_7 () { sudo chmod 777 -R "$@"; }; _7'

alias 75='_75 () { sudo chmod 755 -R "$@"; }; _75'

alias gc='_gc() { git commit -m "$1" "$2"; }; _gc'

alias gps='git push'

alias slr='_slr () { 
if [ -z "$@" ]; then
/opt/solr-5.5.2/bin/solr start;
else
/opt/solr-5.5.2/bin/solr "$@";
fi  }; _slr'

alias oh='gnome-open /var/www/html/'

alias gd='_gd () { 
if [ -z "$@" ]; then
git diff;
else
git diff "$@";
fi  }; _gd'

Want to generate your own bash aliases quickly click here