AiTeky Original Interactive Learning & Practice Intermediate
Shell and PowerShell: quoting, exit codes and the empty variable
Understand why a file name with a space breaks a script, why a failed step can be silently ignored, and why an empty variable inside a delete command can remove the wrong folder.
The shell (Bash, and PowerShell on Windows) is how people automate servers, builds and backups. Scripts are short to write and easy to get dangerously wrong. Three habits explain most disasters: quoting, checking whether each step worked, and never letting an empty variable reach a delete command.
This course models those ideas with small Python programs you can run in your browser. Python stands in for the shell: the code is not shell, but the rules and outcomes follow how Bash and PowerShell behave. Check each shell's documentation for exact syntax. All numbers are made up, and nothing here touches a real disk.
- Learn lessons explain one idea at a time and let you run it.
- Industry ready lessons decide and justify, and end with interview questions.
No shell experience is assumed. Basic Python helps.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 00 25 min 🔒 AiTeky Pass Start here: commands, arguments and pipes See a shell command as a small program with inputs and outputs, connect commands with a pipe, and learn why a command's exit code matters more than what it printed.
- 01 30 min Free sample 🔒 AiTeky Pass The space in the file name Model how an unquoted variable is split into words at every space, see a copy command act on the wrong files, and see how quotes keep one name as one argument.
- 02 30 min 🔒 AiTeky Pass Did the step work? Model a script made of steps that each return an exit code, see how a failed step is ignored by default so later steps use missing data, and see how stopping on the first failure and checking the middle of a pipeline change the result.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.

