Shell
ELI5 — The Vibe Check
The shell is the program that reads what you type in the terminal and makes things happen. The terminal is the window, the shell is the brain inside it that understands your commands. It is the interpreter between you and the operating system.
Real Talk
A shell is a command-line interpreter that provides a user interface to the OS kernel. It parses and executes commands, manages environment variables, handles I/O redirection, and supports scripting with loops and conditionals. Common shells include Bash, Zsh, Fish, and PowerShell. The shell runs inside a terminal emulator.
Show Me The Code
# Check which shell you're using:
echo $SHELL
# /bin/zsh
# Switch to bash:
bash
# Shell scripting example:
for file in *.js; do
echo "Processing $file"
done
When You'll Hear This
"Which shell are you using, Bash or Zsh?" / "Write a shell script to automate the deployment."
Related Terms
Bash
Bash is the most common shell — the language your terminal speaks by default on most Linux and older Mac computers.
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.
Terminal
The terminal is a black window where you talk to your computer using text commands instead of clicking buttons.