Script
ELI5 — The Vibe Check
A script is a file full of commands that run automatically one after another, so you do not have to type them all yourself. It is like a recipe the computer follows. Instead of typing 10 commands every morning, you write a script and run it once.
Real Talk
A script is a program written in an interpreted language (Bash, Python, JavaScript, Ruby) that automates a sequence of tasks. Scripts do not need to be compiled — an interpreter executes them line by line. They are commonly used for build automation, deployment pipelines, data processing, and system administration.
Show Me The Code
#!/bin/bash
# deploy.sh — a deployment script
npm run build
git add -A
git commit -m "Deploy"
git push origin main
echo "Deployed successfully!"
When You'll Hear This
"Write a script to clean up the old log files." / "The CI/CD pipeline runs a build script on every push."
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.
Interpreter
An interpreter reads your code and runs it line by line in real time, like a live translator at a conference.
Shell
The shell is the program that reads what you type in the terminal and makes things happen.