The title says it all. I would like to type "run" in the command line and it would execute /pathtoscript/script.sh.
Create a file named
Place the file in your path and set the executable bit.
What is "your path"?
At the command line, type:
You will see a colon-separated list of directories. These are the directories that the shell searches when looking for a command to run. They are collectively called the path. You will want to place your new file
Alternate approach for interactive work
If you just want
If you want this alias saved permanently, put that line in the
In *nix shells, the way this is done is by adding an executable file (or symbolic link to an executable file) to one of the directories listed in the