Skip to content

Instantly share code, notes, and snippets.

@lofaldli
Created April 6, 2016 15:19
Show Gist options
  • Select an option

  • Save lofaldli/ce22e255af00cc588aaa22d7669dd814 to your computer and use it in GitHub Desktop.

Select an option

Save lofaldli/ce22e255af00cc588aaa22d7669dd814 to your computer and use it in GitHub Desktop.
some useful aliases for bash
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias h='history'
alias j='jobs -l'
alias path='echo -e ${PATH//:/\\n}'
alias libpath='echo -e ${LD_LIBRARY_PATH//:/\\n}'
alias pypath='echo -e ${PYTHONPATH//:/\\n}'
alias now='date "+%T"'
alias today='date "+%A"'
alias svi='sudo vi'
alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove'
alias top='htop'
alias diff='colordiff'
# https://twitter.com/liamosaur/status/506975850596536320
alias fuck='sudo $(history -p \!\!)'
alias myip='curl http://ipecho.net/plain; echo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment