A graphical user interface (GUI) presents windows, menus, icons and buttons that you manipulate with a mouse or touch. A command-line interface (CLI) takes typed text commands and prints text results. Most operating systems offer both for many tasks.
Why it matters
A GUI is easier to discover and learn, since options are visible. A CLI is faster for repetitive work, can be scripted and run on remote servers that have no screen. Many administrators and developers combine them: they browse visually but automate through commands. Servers commonly run with only a CLI to save resources.
Example
Renaming 200 photos in a GUI means 200 clicks. In a CLI, one line does it:
for f in *.jpeg; do mv "$f" "${f%.jpeg}.jpg"; done
The same loop can be saved as a script and rerun later. In the other direction, adjusting a colour curve in an image is far more natural in a GUI.
Common misconceptions
- A CLI is not outdated; it remains central to development and system administration.
- A GUI is not always slower; for visual tasks it is faster.
- Commands are not dangerous by default, but some, such as recursive deletes, have no undo.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.