Possible Duplicate:
How to add an alias to a command in terminal?
I am looking for a way to make a shortcut command. For example, I want to execute the command g++-4.7 temp.cpp -o temp
by running either G temp.cpp -o temp
or g++ temp.cpp -o temp
.
Is there a way to change the application's name for not having to type the complete name?
The program 'g++' can be found in the following packages:
Try: apt-get install
– T0M XeOn LuCiFeR Aug 17 '12 at 09:39alias G="g++-4.7"
– Flint Aug 17 '12 at 09:45