Bash is also a programming language.
A program written in Bash is called a Bash script: a file that holds commands.Bash runs them from top to bottom, one line at a time:

Figure 1 - Bash Runs a Script from Top to Bottom
The lab opens
start_backup.shin the Editor tab.
You run it in the Terminal tab, at the top right.In the lab, put the lines of the script in the order of the figure, make it executable and run it to get the flag.
Answer the question below
Enter the flag you obtained.
The first line of a script is the shebang.
It starts with#!and gives the program that runs the script, here/bin/bash.Any other line that starts with
#is a comment:
Figure 2 - The Shebang and a Comment
In the lab, turn line 2 of
start_backup.shinto a comment to get the flag.Answer the question below
Enter the flag you obtained.
To write a script, you start with the shebang and you add one command per line like this:
#!/bin/bash echo "Server ready"In the lab, you need to:
Write the shebang on line 1 of
status.sh.Add a line that prints
Server online.Make
status.shexecutable.Run
status.sh.
Answer the question below
Enter the flag you obtained.