User Tools

Site Tools


Script configuration

Declare the interpreter

In the first row of a script should be declared the interpreter to be used for its execution:


Make the script executable

After the script is saved, change its permissions with the command:

chmod ugo=+x my_script

Run the script

If the script is saved in any of the directories specified in the PATH variable, simply type:


To view the contents of PATH:

echo $PATH

Otherwise, prepose the explicit path:

programming-languages/bash/config.txt · Last modified: 2020/04/03 09:36 (external edit)