"alias eclipse=/opt/eclipse/eclipse" and Do "source ~/.bashrc" to be able to use alias as a command.
**this is way like "define #"in the C/C++, when you type "eclipse",it will be replaced with the right hand side of the alias definition, which here is the full path to the executable.
Understanding more about /etc/profile and /etc/bashrc
examples
alias gquit="gnome-session-quit" (we can use a short word to replace the long command in this way)
No comments:
Post a Comment