Bash
ELI5 — The Vibe Check
Bash is the most common shell — the language your terminal speaks by default on most Linux and older Mac computers. When people talk about 'writing a shell script', they usually mean Bash. It is old, a bit ugly, but it runs everywhere and every developer should know the basics.
Real Talk
Bash (Bourne Again SHell) is a Unix shell and command language released in 1989 as a free replacement for the Bourne shell. It is the default login shell on most Linux distributions and was the default on macOS until Catalina (2019). Bash scripts automate tasks through variables, conditionals, loops, functions, and command substitution.
Show Me The Code
#!/bin/bash
# A simple bash script:
NAME="World"
echo "Hello, $NAME!"
# Run with:
bash hello.sh
# or: chmod +x hello.sh && ./hello.sh
When You'll Hear This
"Write a Bash script to back up the database." / "Is this a Bash or Zsh environment?"
Related Terms
CLI (Command Line Interface)
CLI is just the fancy term for any tool you use by typing commands instead of clicking buttons.
Script
A script is a file full of commands that run automatically one after another, so you do not have to type them all yourself.
Shell
The shell is the program that reads what you type in the terminal and makes things happen.
Terminal
The terminal is a black window where you talk to your computer using text commands instead of clicking buttons.