# Script (Programming)

> A short program that runs straight from its text file, with no build step.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Script, Script File, Computer Script

## Think of it like

It is like a list of chores on the fridge. Someone reads it and does each job in order.

## Definition

A script is a short program that is run straight from its text file. There is no build step first. A tool called an interpreter reads the file and does each line in order. Scripts often do small jobs, like renaming files or copying backups. Python, Bash and JavaScript are common languages for scripts.

## Example

Jack has 300 photos with messy names. He writes a ten-line Python script that renames them all in two seconds.

## Example code

```console
$ python rename.py
Renamed 300 files.
```

One command runs the script. It does its job and prints a note.

## Why it matters

Scripts are the fastest way to make a computer do a boring job for you. Many people start coding by writing one.

## Common mistake

Thinking a script is not real code. It is a full program, and a careless one can delete files just as fast.

## Three principles

- **Runs from text.** No separate build step is needed.
- **Small jobs.** Often one task, done again and again.
- **Read line by line.** An interpreter runs it in order.

## Related terms

- [Program](https://learn.benibix.com/term/development/program)
- [Scripting Language](https://learn.benibix.com/term/development/scripting-language)
- [Interpreter](https://learn.benibix.com/term/development/interpreter)
- [Python](https://learn.benibix.com/term/development/python)
- [Hello World Program](https://learn.benibix.com/term/development/hello-world-program)
- [Compiler](https://learn.benibix.com/term/development/compiler)

## Taught in

- [Hello World in Python](https://learn.benibix.com/learn/development-concepts/hello-world-in-python): Programming Basics, 2/18

![Three panels joined by arrows. A note in plain words says: say hello, then stop. A file named hello.py holds one line, print hello world. A terminal runs python hello.py and prints Hello, world!](https://learn.benibix.com/diagrams/dev7-first-program.svg)

---

Source: https://learn.benibix.com/term/development/script
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
