Shell shortcut

Issues related to software problems.
Post Reply
Posts: 7
Joined: 2014/04/11 22:28:24

Shell shortcut

Post by skyler440 » 2014/11/18 04:15:32

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 , 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

Post by gerald_clark » 2014/11/18 04:35:34

man bash
reference alias

Posts: 3007
Joined: 2014/09/20 11:22:14

Re: Shell shortcut

Post by aks » 2014/11/18 17:39:09

Or you could just put them in your path.

Post Reply

Return to “CentOS 5 - Software Support”