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?