Today's TIP is on using alias in you command window.
This is to save some typing.
Commonly used for a long strings that are frequently used. Alias allows you to have a small more familiar command or name to execute a long string.
You can add following to your bash profile and enjoy less typing.
alias clr=clear
alias cls=clear
alias conMysql="/usr/local/mysql/bin/mysql -u user -ppassword"
alias openBash="/usr/bin/vim ~/.bash_profile"
alias startTomcat="cd $CATALINA_HOME/bin; ./catalina.sh run"
alias stopTomcat="cd $CATALINA_HOME/bin; ./catalina.sh stop"
You can add more for your frequently used commands.
No comments:
Post a Comment