Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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

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.