- Practice
- About 12 min
- 5 practice questions
GUI, CLI, files and folders
Compare graphical and command-line interfaces and handle exam questions on files, folders and paths.
If something looks wrong, please tell us.
How you talk to the OS matters in exams, and so does how files are organised. This lesson covers both: the interfaces and the file system basics.
Interfaces
- CLI (Command Line Interface): you type text commands. It is powerful and light but requires remembering commands.
- GUI (Graphical User Interface): you use windows, icons, menus and a pointer. It is easier for beginners.
- Desktop is the main screen area; icons are small pictures that stand for files, folders and programs.
Files and folders
A file holds data and has a name and an extension, such as report.docx. A folder (directory) groups files and other folders. A path shows where a file is, for example Documents/Exam/notes.txt means the file notes.txt inside the folder Exam inside Documents.
| Extension | Usually means |
|---|---|
| .txt | Plain text |
| .docx | Word processor document |
| .xlsx | Spreadsheet |
| .jpg, .png | Image |
| .mp3 | Audio |
| Portable document |
Worked examples
Example 1. What is the file name and the extension in budget2024.xlsx? File name is budget2024; the extension is .xlsx, which shows it is a spreadsheet.
Example 2. In the path Documents/Exam/notes.txt, which is the parent folder of notes.txt? Exam.
GUI = pictures and pointer. CLI = typed commands. The extension tells the file type.
Key takeaways: GUI is graphical, CLI is typed, and the extension identifies the file type.
Check your understanding
-
1. Operating a computer by typing text commands is a
- CLI
- Icon
- GUI
- Desktop
Show answer
Answer: A. CLI stands for Command Line Interface: you type commands.
-
2. Small pictures on the screen that stand for files, folders and programs are
- Commands
- Icons
- Extensions
- Paths
Show answer
Answer: B. Icons are the small pictures used in a GUI.
-
3. In budget2024.xlsx, what is the extension?
- .2024
- budget2024
- .xlsx
- budget
Show answer
Answer: C. The extension is the part after the dot, .xlsx, which shows a spreadsheet.
-
4. In the path Documents/Exam/notes.txt, which is the parent folder of notes.txt?
- Documents
- notes
- txt
- Exam
Show answer
Answer: D. notes.txt sits directly inside Exam, which is inside Documents.
-
5. Which is true of a CLI compared with a GUI?
- It is powerful and light but you must remember commands
- It uses windows, icons and a pointer
- It cannot run any programs
- It is easier for beginners
Show answer
Answer: A. A CLI is powerful and light but needs commands remembered; a GUI is easier for beginners.
Sign in to keep track of the lessons you finish.