Handy bash aliases that i use

Posted: 11/04/2012 in Shell tips
Tags: , ,

This is a post for the bash aliases that i use most of the time. I will write here any new of them to have them collected…

alias l="ls -lah --color | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\" %0o \",k);print}'"
alias lh='ls -Flah'
alias fdiff='diff -rq'
alias diffy='diff -y -W 200'
alias cdiff='colordiff'
alias ..='cd ..'
alias h='htop'
alias m='mutt'
alias up='apt-get update && apt-get upgrade'
alias df='df -h'
alias du='du -hs'
alias myip='curl icanhazip.com'
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s