Shell shortcut
Shell shortcut
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?
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Shell shortcut
man bash
reference alias
reference alias
Re: Shell shortcut
Or you could just put them in your path.