Introduction to Operating Systems

Shell scripting, step by step:
everything is a command line.

Command lines saved in a file, and the bits of programming bash added on top of them: variables, conditions, loops and functions. Every script runs in a debugger, line by line, the way the slides show it.

13 chapters · 63 pages≈ 212 minscript debugger · script lab with missions · IFS and pattern simulators
Your progress

Start with shell scripts.

Follow the chapters in order or pick one on the map.

Start the course

Progress is saved in this browser. Reset

Course map

From a file of commands to functions and parameters.

Current chapterDone
Study material generated with AI (Claude) from the slides of ISO lecture 08, to be reviewed by the lecturers. It may contain mistakes; for the exam, the reference is the lecture and its slides. Found a mistake? Open an issue on the course repository.
About this material

How it was made

Text, figures and the simulators were generated with Claude (Anthropic) from the slides of lecture 08 – Shell Scripting, following the structure of the interactive lectures 02, 03 and 07. The debuggers are the step-by-step runs of the slides; the script lab runs scripts in a small bash interpreter written for this page.

What was checked

The interpreter of the script lab was tested on every script and terminal session of the slides (outputs, exit codes, error messages, IFS splitting, read, $(...), $(( )), bc, expr, test and [, case, loops, functions, "$@"). It is a teaching model, not bash: only the commands of the lecture exist, and there are no real processes.

Mistakes

If you find one, open an issue with the page and the sentence. Version: November 2026.

Sources and contributors

Slides: USO Team, Copyright (C) 2026 Wyliodrin & Politehnica Bucharest, CC-BY-SA 4.0. Bibliography: the sources listed in the slides of the lecture.