Exercises

Question and Answers:

How do you assign a bash variable?

Click Here for Answer
bash_variable=variable-name

How do you call a bash variable?

Click Here for Answer
$bash_variable_name

What is a shebang?

Click Here for Answer

A shebang is a line that informs the operating system of the exact shell to use when executing the script.

The shebang simply points to the absolute path of the shell.

What is the shebang syntax for bash?

Click Here for Answer
#!/bin/bash

Build Your Own Script Exercises: