Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I create a psuedo command for the terminal?

The basic command for lampp is:

sudo /opt/lampp/lampp start

But I don't want to type this every time so can I create a psuedo for this so I can just type

lampp start
lampp startssl
lampp stop

and so forth so that lampp invokes sudo /opt/lampp/lampp.

share|improve this question
up vote 4 down vote accepted

Edit your ~/.bashrc file and create aliases.

It's quite simple, just add lines such as:

alias lstart="sudo /opt/lampp/lampp start"

Be careful when creating your aliases because you may create an alias which is name the same as something that already exists. Also, do not delete anything else in that file or your may find things breaking.

share|improve this answer
thanks for this. – sayth Jul 6 '12 at 3:01
Is these any way to check if my alias command already exist ? to avoid any conflict like this you have mentioned – Lykos Sep 18 '15 at 8:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.