Page 1 of 1

Shell shortcut

Posted: 2014/11/18 04:15:32
by skyler440
I have a few shell scripts I would like to execute from anywhere from the terminal just by typing a command. Is there a way to assign a shell script to a command? For example if I want to run helloworld.sh , could I make typing hi from anywhere in shell execute the shell script?

Re: Shell shortcut

Posted: 2014/11/18 04:35:34
by gerald_clark
man bash
reference alias

Re: Shell shortcut

Posted: 2014/11/18 17:39:09
by aks
Or you could just put them in your path.