I am very new to bash
, I don't even know if what I want is possible. Sorry in advance if unknowingly I am asking for too much and it isn't possible.
I execute many different bash
scripts for testing and learning process too frequently after doing small edits.
It's really annoying to type the whole command over and over again every minute, it wastes lot of my time.
For example, currently to execute the script I always enter
su -c sh /sdcard/downloads/script1.sh
Is there anyway I can assign this whole command to be initiated by just entering a single word? I would like to just type e.g.
script1
This should actually execute
su -c sh /sdcard/downloads/script1.sh
(or any defined command for that instance).
In short, there would be many pairs of a single word and it's corresponding command so that it will save my time.
And this thing should be permanent.
Even if I close the terminal and reopen it and enter my assigned word, it should run the corresponding defined command.
I hope there's a way to do it.
alias
– jsotola Oct 07 '19 at 04:45