OS function: providing a command-line interface (CLI)
A user interface where you type text commands to control the computer. It is precise and quick for experts, uses few resources, but is harder to learn because commands must be remembered.
Understanding OS function: providing a command-line interface (CLI) in IGCSE Computer Science Paper 1
What it does: The student must know the word copy, the file name and the folder path. Nothing on screen prompts them, so the commands have to be remembered. One typed command deletes every .tmp file at once. This shows how quick and precise a CLI is for an experienced user. A CLI is controlled by typed text commands. Clicking icons and windows is how a GUI works. A GUI uses icons and menus that guide a beginner. A CLI needs commands to be learned first. An expert who knows the commands can do exact tasks quickly with a few typed words. The command must be typed exactly right. A CLI does not display icons, so it uses little memory.
Common mistakes: A command and its argument must be separated by a space. It should be 'cd Documents'. The CLI cannot understand 'cdDocuments'. CLI commands must be typed exactly. The command to make a folder is 'mkdir', not 'mkdr', so the computer would not recognise it.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 373–389) and word search (Modules 356–389).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
command-line interface (CLI)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →