Sunday, April 28, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1491  / 3 Years ago, mon, november 1, 2021, 2:52:21

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.


More From » command-line

 Answers
7

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.


[#37068] Wednesday, November 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;