Answer the question
In order to leave comments, you need to log in
How to make an alias for a console string with a variable?
How to make an alias with a variable, for example I want to execute such a command sudo systemctl {{название}} start
And then call for example ctl mongod
orctl nginx
Answer the question
In order to leave comments, you need to log in
sudo systemctl {{name}} start
alias ctl="sudo systemctl start"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question