Skip to content
BENIBIX Learn

Command Line

Infrastructure⌨️ Linux & the Command LineCommand Line

Also known as Command-Line Interface (CLI), CLI, Command Prompt

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

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.

Example

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

Why it matters

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

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 code

console
$ echo Hi Emma
Hi Emma
One typed command, and the line the computer prints back.

Common mistake

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

Key takeaways

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

Learn it properly