I created a .sh
(or bash) file and I would like to make a command in GNOME-Terminal for the file. I know you run a .sh
file by:
./file.sh
After you compile it, I also know all the command are stored in /bin/bash
. But I can't seem to figure out how I can create a command that I can call when I am in any directory in the terminal, something like:
abc
would run abc.h
, etc. Any suggestions?