You can talk to computers with words. 
You can talk to computers with words. 
This way of talking is called a command line. You type a command. The computer reads it and acts.
It is very fast for some people. You can save many commands in a file. Then the computer runs them all at once. This is called a script.
Most people use pictures and icons today. But many experts still use words. It helps them do hard work. 
It is a very useful tool for computers.
You can talk to computers using text. This is called a command-line interface, or CLI. 
Most people use a graphical user interface today. This uses pictures, windows, and icons to work. 

Some programs have both types of tools. For example, a math program might have icons. But it also lets you type commands. This gives you even more ways to use it. 
A command-line interface, or CLI, is a way to talk to software using text. 
How does this text-based system work? It relies on a program called a command-line interpreter. This interpreter acts like a translator that reads your typed instructions and carries them out. A typical command line has a few different parts. First, there is a prompt, which is a symbol that shows the computer is ready for you to type. Next, you type the command itself. You can also add parameters, which are extra pieces of information. These parameters can be arguments or options that change how the command works.
This way of working has a long history. In the mid-1960s, people used computer terminals to interact with machines. Before that, they often used punched cards, which were not interactive. In 1964, a man named Louis Pouzin created a tool called RUNCOM. He used the word "shell" to describe using commands like a programming language. Later, Glenda Schroeder developed the first Multics shell. In 1971, Ken Thompson created the first Unix shell at Bell Labs. 
There are many different types of shells used today. For example, the Bourne shell was introduced in 1977. This led to the popular Bash shell used in many places. Windows users might use CMD.EXE or Windows PowerShell, which was released in 2006. 

The CLI is great for doing many things at once. You can write a script, which is a file containing a group of commands. The computer can then run that whole script as one single program. This makes it very easy to automate repetitive tasks. Some programs, like the math tool GNU Octave, offer both a GUI and a CLI. 
A command-line interface (CLI) is a method of interacting with software by typing formatted lines of text. 
The mechanism of a CLI depends on a program called a command-line interpreter. This interpreter, or command processor, acts as the middleman that executes the user's input.
There are several distinct types of command-line interfaces used in computing. Operating system shells are programs provided with the OS to manage its core functions. Examples include various Unix shells like Bash, ksh, and zsh, or Windows programs like CMD.EXE and Windows PowerShell. 

The history of the CLI is rooted in early teleprinter (TTY) machines. In the mid-1960s, these terminals provided a more interactive alternative to the non-interactive method of using punched cards. Mechanical teleprinters were eventually replaced by "glass TTY" systems, which used a keyboard and screen. In 1964, Louis Pouzin developed the RUNCOM tool at the MIT Computation Center. Pouzin coined the term "shell" to describe using commands like a programming language. Following his work, Glenda Schroeder developed the first Multics shell in 1965. In 1971, Ken Thompson developed the first Unix shell, the V6 shell, at Bell Labs. 
Using a CLI offers significant advantages in terms of efficiency and resource management. A CLI requires fewer system resources to implement than a GUI, making it ideal for systems with limited hardware. For experienced users, typing a few characters to access a command option can be faster than navigating through multiple menus. 
CLIs are used across many specialized fields and by diverse groups of people. Programmers and system administrators rely on them for coding and managing large-scale server environments. Engineers and scientists use them for technical computations and data processing. Even people with visual disabilities find CLIs helpful, as the text-based responses can be displayed using refreshable Braille displays. The interface is also essential for inter-process communication, where command lines from one process are redirected to another using methods like standard streams or named pipes.
The evolution of the CLI reflects the broader history of computing architecture. As the microcomputer revolution occurred, hardware terminals were replaced by terminal emulators. These are software programs on a PC that interpret signals to connect to larger mainframe or minicomputer systems. Today, the CLI continues to evolve, as seen in the 2006 release of Windows PowerShell. This version combined traditional Unix shell features with the object-oriented .NET Framework. Whether through a terminal emulator on macOS or a specialized shell on Windows, the CLI remains a fundamental way to command the digital world.
🖼️ Images & Media (10)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.