# Command Line

> Typed lines that tell a computer what to do. No mouse is needed.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** Command-Line Interface (CLI), CLI, Command Prompt

## Think of it like

Think of it like talking to a helper with words instead of pointing. You say what to do, and it does it.

## Definition

The command line is a way to use a computer by typing commands instead of clicking. You type one line, press Enter, and the computer runs it and prints a reply. It is faster than menus for many jobs, and it works on servers that have no screen. Commands can be saved in a file and run again later. Most developer tools are used this way.

## Example

Emma types ls and presses Enter. The computer prints the names of the files in the folder.

## Example code

```console
$ echo Hi Emma
Hi Emma
```

One typed command, and the line the computer prints back.

## Why it matters

Servers, build tools and Git are all run from the command line. It is a core skill for any coder.

## Common mistake

Pasting a command you do not understand. One wrong line can delete files with no undo.

## Three principles

- **Type, not click.** One command per line.
- **Fast and exact.** Good for repeat jobs.
- **Works with no screen.** The way to run servers.

## Related terms

- [Terminal](https://learn.benibix.com/term/infrastructure/terminal)
- [Shell](https://learn.benibix.com/term/infrastructure/shell)
- [Environment Variable](https://learn.benibix.com/term/infrastructure/environment-variable)

## Taught in

- [Terminal and Shell Basics](https://learn.benibix.com/learn/infrastructure-linux/terminal-and-shell-basics): Linux CLI, 1/10

---

Source: https://learn.benibix.com/term/infrastructure/command-line
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.
