Lesson 0: Why Write a Script at All?
Picture a maintenance task you repeat every day: back up a folder, delete old temporary files, and send a short report. The first time you type it by hand in the terminal, you get every step right. But the tenth time, late at night, it is easy to skip a step, mistype a path, or run a command from th
A script is a list of commands written once in a file, so the computer runs it identically every time — without anyone needing to remember or retype the steps.
- script
- A text file containing a sequence of terminal commands that the computer runs line by line with a single trigger.
- automation
- Turning a repeating task into something the computer performs on its own, without manual typing each time.
- reproducibility
- The property where the same script produces exactly the same result on every run, independent of the operator's memory or mood.
- manual step
- An action someone must type by hand each time — a weak point where mistakes happen (a typo, a forgotten step, the wrong directory).