main linux-shell/lessons/06-processes-and-jobs

README.md

Lesson 6: Processes and jobs

This lesson covers processes and jobs. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/linux-shell/lessons/6

Files

  • commands.sh: ps, top, kill and background jobs

Tip: Quote your variables: "$file" survives spaces in names, $file doesn't.

Tip: set -euo pipefail at the top of a script stops it at the first error.

Run it

# type the commands from commands.sh one by one; don't run it as a script

Exercises

See exercises.md. Ask in the forum once you've tried.