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

Searching Inside Files with grep

Intermediate18 min0/3 activities

Pick exact matches out of log files: case-insensitive, numbered, and recursive.

Activities

  1. 01Find every mention of 'failed' (any case) into /tmp/failed.txt

    The output must contain the word failed.

  2. 02Show ERROR lines with their line numbers into /tmp/numbered.txt

    Every line must be prefixed with line:number.

  3. 03Search the whole /opt tree for DEPLOY into /tmp/deploy.txt

    The result must contain DEPLOY.

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