bash
Bash is a command-line interpreter: you control the computer with typed text commands instead of clicking, and you can chain commands into automatically running scripts.
In plain terms
You usually use a computer with a mouse, clicking on icons and menus. Bash is another route to the same place: you type what you want into a text window (the terminal), and the machine carries it out. It is as if, in a restaurant, instead of pointing at pictures on the menu, you told the waiter exactly what you wanted, and they brought precisely that.
The benefit is accuracy and repeatability. Renaming a thousand files by clicking takes an afternoon; with a single bash command, it takes a few seconds. By writing the commands one below the other, you can save them to a file: this is the script, which can be rerun at any time later.
It has come back into the spotlight due to AI. Coding agents mostly do not click but work through a command line similar to bash: this is how they install programs, run tests, and search among files. If you watch an agent's work, you will mostly see such commands on the screen.
How it works
- You open a terminal. Bash prints a short prompt (often ending with a $ sign), and waits behind it with a blinking cursor for you to type something.
- You type a command, for example to list the contents of a folder, then press Enter.
- Bash interprets the line: it identifies which program to launch and passes the specified arguments to it (for example, which folder is involved).
- The program runs and writes the result back to the terminal as text, or if requested, to a file or as input for the next command. This allows you to build long chains from small commands.
- If you save commands to a file, they become a script that bash executes line by line, with conditions and loops, without human intervention.
An everyday example
You try a coding agent and ask it to organize your vacation photos into folders by date. The agent shows the bash command it wants to run and asks if you authorize it. In this case, you decide whether your computer can execute what the AI described.
Who is affected
A common misconception
Limits and risks
- Bash does exactly what you type: there is no trash bin and usually no undo; a bad delete command can cause permanent data loss.
- Do not paste commands from the internet or an AI response that you do not understand, as they run with the same rights as you.
- If you let an agent run commands freely, its mistakes and any malicious instructions smuggled into it will be executed on your machine, so it is advisable to keep permissions narrow.
- Its syntax is terse and hard to read, so longer scripts easily end up buggy; for more complex tasks, a proper programming language is a better choice.
Similar, but not the same
- terminal – The terminal is the window you type into, while bash is the program running inside it that interprets and executes the typed commands.
- PowerShell – PowerShell is Microsoft's command interpreter: it is built into Windows but can also be installed on Linux and macOS. It works with different commands and syntax, so most bash commands do not work in it without modification.
- programming language (e.g., Python) – Bash is mainly used to launch and connect other programs, whereas full applications are written using a general-purpose programming language.
Related concepts
command interpreter, command line, operating system
bash-szkript, parancs, environment variable
A brief history
Bash was written by Brian Fox for the GNU Project; its first version was released in 1989. The name is a pun: 'Bourne Again Shell' refers both to the earlier Unix command interpreter, the Bourne shell written by Stephen Bourne, for which it was created as a free software successor, and, when pronounced, sounds like the English 'born again', meaning 'reborn'.
Where things stand
As of late 2026, bash is the default command interpreter on most Linux systems. On macOS, zsh has been the default since 2019, but an older version of bash is also there, and a newer one can be installed. On Windows, it can be used with a separate add-on, such as WSL or Git Bash. With the spread of coding agents, even people who have never opened a terminal before now encounter it.
Also known as
Bash · bash · GNU Bash · Bourne Again Shell · Bourne-Again SHell · bash shell · bash-szkript · bash script
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.