User Interface – CLI & GUI (Revision Sheet)
1. Command Line Interface (CLI)
Definition: Text-based interface; user types commands.
Input: Keyboard only.
Examples: MS-DOS, UNIX shell (bash), CMD, PowerShell.
Advantages: - Fast for experts - Low resource usage - Powerful & flexible (scripting, automation)
Disadvantages: - Hard for beginners - Requires memorizing commands - Risk of errors (wrong
command can delete data)
Users: Programmers, administrators, advanced users.
2. Graphical User Interface (GUI)
Definition: Visual interface with Windows, Icons, Menus, Pointer (WIMP).
Input: Mouse, keyboard, touchscreen.
Examples: Windows OS, macOS, Linux (GNOME/KDE), Android, iOS.
Advantages: - Easy to use, beginner-friendly - Visually appealing - Reduces typing errors -
Supports multitasking
Disadvantages: - Requires more RAM, CPU, GPU - Slower for experts compared to CLI - Limited
flexibility
Users: Everyday computer/mobile users.
3. Comparison Table (CLI vs GUI)
Feature CLI GUI
Interface Text-based Graphical
Input Keyboard commands Mouse, touch, keyboard
Ease of Use Hard for beginners Very easy
Speed Very fast for experts Slower
Resource Use Low High
Flexibility Very flexible (scripts) Limited
Examples MS-DOS, Bash Windows, Android
4. Diagram (CLI vs GUI with OS)
[ USER ]<br/>
|<br/>
-----------------------<br/>
| |<br/>
v v<br/>
[ CLI ] [ GUI ]<br/>
(Text Commands) (Icons, Menus, Mouse)<br/>
| |<br/>
-----------------------<br/>
|<br/>
v<br/>
[ Operating System ]<br/>
|<br/>
v<br/>
[ Hardware ] (CPU, Memory, Disk, Devices)
■ Quick Summary for Exam
- CLI = Fast, powerful, but hard to learn.
- GUI = Easy, user-friendly, but resource-heavy.