Introduction to BASH scripts


Open a terminal window.

What is my default shell? Type

echo $SHELL

and hit enter. The output, e.g. /bin/bash, will tell you what shell you are using at the moment.

Note: $SHELL is a variable.

The first script:

echo Hello World
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License