Introduction to Bash
Bash is a shell scripting language — it's the interactive command line on most Linux systems, and also a language for writing scripts that automate the same commands you'd type by hand. Unlike every other language on this site, Bash has no static type system at all: every variable is a string by default, and whether something is treated as a number only matters inside specific contexts like arithmetic expressions.
Bash's other defining feature is the exit code: every single command — not just functions — finishes by returning a status number from 0 to 255. By convention 0 means success and anything else means failure, which is the opposite of how a boolean true usually works in a typed language. This course covers that, along with arrays, parameter expansion for string manipulation, pipes and redirection, and the strict-mode flags that make Bash less forgiving of mistakes.
A quick preview
Here's a real Bash script, executed for real on this page's own interpreter — not a mockup:
echo "Bash: a shell scripting language -- interpreted, not compiled, with exit codes instead of typed return values."
Bash: a shell scripting language -- interpreted, not compiled, with exit codes instead of typed return values.
Just a single command — no function, no class, nothing to declare first. The next lesson runs your first full script and explains exactly what's happening.
Practice exercise
Print exactly: Bash runs scripts, not programs.