You are on page 1of 1

the standard method for calling the shell for a script is to declare it in the first line of the file.

Also called the shebang #! file: demo.sh


Code:

#!/bin/bash echo Hello, world! Change the file to executable and run it from the terminal.
Code:

$ chmod +x demo.sh $ ./demo.sh Hello, world!

You might also like