1 month ago
23 lines687 B
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,$filedoesn't.
Tip:
set -euo pipefailat 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.