MyLeoNes™

Command line — Computing, 11–13

Use text commands to work directly with a computer, instead of choosing every action from a menu.

What the command line is

The command line is a place where you tell a computer what to do by typing words, rather than clicking buttons. The computer reads each command and reports what happened. It can feel plain, but the same method works quickly on many files or distant computers.

Why it exists

Menus are helpful, but they cannot show every possible action. Early computers had no colourful windows, so people needed a compact way to give precise instructions. The command line solves that problem: one short command can rename, copy, or inspect many things at once.

A small example

Suppose a folder contains notes.txt and photo.jpg. First you type a command such as ls to list the files. Then you type mv notes.txt school-notes.txt: mv means move, and changing the second name renames the file. Finally, ls confirms the new name.

The dangerous assumption

A common mistake is thinking a command line will protect you from a wrong command. It usually follows the text exactly, so a typo in a delete command may remove the wrong file. That mistake is reasonable: menus often ask for confirmation, while commands can look like harmless sentences.

Where you meet it

People use command lines to install tools, manage web servers, run programs, and move large groups of files. A game developer might launch a program with a particular setting, while a website administrator may repair a server from far away. You do not need it for every task, but it is powerful when menus are too slow or limited.

Keep exploring

Other languages

Loading MyLeoNes™…