Created
April 6, 2016 15:19
-
-
Save lofaldli/ce22e255af00cc588aaa22d7669dd814 to your computer and use it in GitHub Desktop.
some useful aliases for bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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