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

Log Analysis with Pipes & Redirection

Intermediate20 min0/3 activities

Turn raw logs into answers. Count lines, isolate errors and filter out noise.

Activities

  1. 01Count the lines in /var/log/access.log into /tmp/linecount.txt

    The file must begin with the number 6.

  2. 02Extract only ERROR lines from app.log into /tmp/errors.txt

    Two errors, and no INFO lines, must be present.

  3. 03Save the non-INFO lines into /tmp/no-info.txt

    The result must contain no INFO lines.

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