Ubuntu: create a Pseudo command for lampp xampp


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.


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.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »