0

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?

1 Answers1

2

Aliases can be created by supplying name / value pairs as arguments for the alias command. An example of the Bash shell syntax is:

$ alias name='unix command with options'

For example:

$ alias copy="cp"

In your case, alias G="g++-4.7" should work.

jokerdino
  • 41,320
Amol Sale
  • 1,006