Training · Linux fundamentals
The analogy. A city with one rule: everything is an address. Files, disks and even running processes have a path, which is why the same three tools can inspect all of them.
The shell is the classroom: the lecture behind this lab covers the mental model, the commands you are about to use, and the four things that usually go wrong.
Read the lecture before you startall labs
Shell Scripting: Your First Script
Intermediate18 min0/3 activities
Create a script file, give it a shebang and the execute bit - the anatomy of every script.
Activities
01Create /opt/app/backup.sh
Create the file that will hold your script.
02Start it with the shebang #!/bin/bash
The first line must be #!/bin/bash.
03Make /opt/app/backup.sh executable
It must have an execute bit set.
student@ophir-lab — linux-script-01
Booting sandbox…
bash 5.2 · x86_64 (wasm)isolated · no network egress