For example, if we have shell script named "
myshellscript.sh" (with execute permission) we can make it run in the current working directory with the commands
$ sh myshellscript.sh (or)
$ ./myshellscript.sh
If the shell scripts are stored in an executable path, it will save us from typing extra keystrokes. To find the paths that are setup, type
$ echo $PATH
/usr/bin: /usr/local/bin
(more…)