This is a shell alias sets, design for Linux / MacOS users, especially for Dvorak keyboard layout users.
We deal with shell everyday, type same commands around and around.
Sometimes, we create shell scripts to do complex chores. This can avoid us to type repeat commands, but how about the most frequently used commands?
Some commands are very short, such as 'vim' and 'cd ..', but we type it MANY MANY times everyday. They are short, but not enough.
Otherwise, some commands are not short enough, such as 'apt-cache search' and 'ps aux | grep'.
Maybe you think these commands are short enough, but what if you are lack of time? (fixing a bug on product server, for example)
By bind the most frequently used commands to 1 ~ 2 key. That will save lots of time, and our fingers.
alias i='cd' // go in alias o='cd ..' // go out alias a='ls' // list alias aa='ls | grep' // list with filter alias u='pwd' // show current location alias m='mkdir' // make directory
alias e='vim' // edit a file alias f='find -name' // find file by name alias t='tail -f' // keep watching at a file alias x='tar zxvf' // extract compress file
alias sh="apt-cache search" // search a package alias in='apt-get install' // install a package alias un='apt-get remove' // uninstall a package
For MacOS, use "port search | port install | port uninstall" instead.
For Centos, use "yum search | yum install | yum remove" instead.
alias q='exit' // exit shell alias c='clear' // clear monitor alias p='ps aux | grep' // look for process alias h='e /etc/hosts' // edit host config
alias uuu="e /usr/local/bin/aoeu.sh" // update the aoeu.sh alias eee=". /usr/local/bin/aoeu.sh" // execute the aoeu.sh
Create your own alias now! Before you set a new alias, type it on shell and make sure it's NOT used.
For example, I'm a web engineer, so I create those alias to do chores:
alias nr='service nginx restart' alias phpr='service php5-fpm restart' alias phpi='e /etc/php5/fpm/php.ini' alias sn='svn st | grep ? | awk '\''{print $2}'\' alias sa='svn add `svn st | grep ? | awk '\''{print $2}'\''`' alias sr='svn rm --force' .....