Created
December 14, 2012 10:59
-
-
Save igniteflow/4284590 to your computer and use it in GitHub Desktop.
Useful bash aliases from http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
This file contains 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
## Colorize the ls output ## | |
alias ls='ls --color=auto' | |
## Use a long listing format ## | |
alias ll='ls -la' | |
## Show hidden files ## | |
alias l.='ls -d .* --color=auto' | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
## Colorize the grep command output for ease of use (good for log files)## | |
alias grep='grep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
## Start calculator with math support | |
alias bc='bc -l' | |
## Generate sha1 digest | |
alias sha1='openssl sha1' | |
## Create parent directories on demand | |
alias mkdir='mkdir -pv' | |
## Colorize diff output | |
# install colordiff package :) | |
alias diff='colordiff' | |
## Make mount command output pretty and human readable format | |
alias mount='mount |column -t' | |
## Command short cuts to save time | |
alias h='history' | |
alias j='jobs -l' | |
alias path='echo -e ${PATH//:/\\n}' | |
alias now='date +"%T' | |
alias nowtime=now | |
alias nowdate='date +"%d-%m-%Y"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment