Skip to content

Instantly share code, notes, and snippets.

@ralavay
Created March 29, 2014 16:37
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 ralavay/9857681 to your computer and use it in GitHub Desktop.
Save ralavay/9857681 to your computer and use it in GitHub Desktop.
bash_aliases for Ubuntu
# Aliases
# Copy this file to ~/.bash_aliases
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade -y'
alias up='sudo apt-get update && sudo apt-get upgrade -y'
alias dist-upgrade='sudo apt-get dist-upgrade -y'
alias inst='sudo apt-get install'
alias ins='sudo apt-get install --no-install-recommends'
alias remove='sudo apt-get remove --purge'
alias autoremove='sudo apt-get autoremove --purge'
alias search='apt-cache search'
alias show='apt-cache show'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ping='grc ping'
alias p='ping -c 5 -n -i 0.2 -W1'
alias pp='p -c 5 -n -i 0.2 -W1 google.com'
alias f='free -m'
alias l='ls -lsh'
alias wget-all-website='wget --mirror -p --convert-links'
alias xrand='xrandr --output LVDS1 --brightness'
alias catn='cat -n'
alias grep#='grep -v "^#"' # only view the uncomment line
alias grep##='egrep -v "^#|^$"' # only view the uncomment line + suppress blank lines
alias ?='whatis $(ls /bin | shuf -n 1)'
alias pyweb='python -m SimpleHTTPServer'
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
alias pj='python -mjson.tool'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment