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!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.