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 start
all labs

Scripts II: Output & Execution

Intermediate20 min0/4 activities

Write a multi-line script, make it executable, run it, and capture its output to a file.

Activities

  1. 01Create /opt/app/greet.sh

    Your script file must exist.

  2. 02Give it a shebang and at least one echo

    The script must start with #!/bin/bash and print something.

  3. 03Make /opt/app/greet.sh executable

    It must have an execute bit set.

  4. 04Run the script and send its output to /opt/app/greet.out

    The captured output must contain Hello.

student@ophir-lab — linux-script-02
bash 5.2 · x86_64 (wasm)isolated · no network egress