# TorMec

### Sidebar

programming-languages:bash:config

# Script configuration

## Declare the interpreter

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

#!/bin/bash

## 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:

my_script

To view the contents of PATH:

echo \$PATH

Otherwise, prepose the explicit path:

path/my_script