Tag Archives: shell

Creating alias for commonly used command lines in Unix

Hello there,

Today another quick tip. If you are like me that is typing the same shell command over and over, there is a way to create alias so it will make your lifer easier.

Let’s say that you have to start the Intelligence Server every day… (for some reason). To do that you would have to type this command:

$ ./mstrctl -s IntelligenceServer start

But, you can create an alias for that and instead of writing that line, you can just type: startI

To do that, you just have to:

  1. Open your shell in Unix
  2. Type: alias startI=’./mstrctl -s IntelligenceServer start’

Now, just type: startI and it will be translate into the start command shown above.

Hope it helps.

God bless you!