- Foundation
- About 11 min
- 5 practice questions
Files, folders and file extensions
Understand how an OS organises files into folders and read common file extensions.
If something looks wrong, please tell us.
Everything you save is a file, and the OS keeps files in order using folders. Knowing the vocabulary makes everyday computer work, and exam questions, simple.
Files and folders
A file is a named collection of data stored on a disk. A folder (or directory) is a container that holds files and other folders. A folder inside another folder is a subfolder. The route to a file, such as Study > Maths > notes.txt, is its path.
File extensions
The extension is the short code after the dot in a file name. It tells the OS which program should open the file.
| Extension | Kind of file |
|---|---|
| .txt | Plain text |
| .docx | Word processing document |
| .xlsx | Spreadsheet |
| .pptx | Presentation |
| .jpg / .png | Image |
| .mp3 | Audio |
| .mp4 | Video |
| Portable document | |
| .exe | Program that can run |
Basic operations
- Copy makes a duplicate; the original stays.
- Cut and paste (move) takes the file from one place to another.
- Rename changes the name.
- Delete sends the file to the Recycle Bin (it can often be restored from there).
Worked examples
Example 1. A file is named result.xlsx. What kind of program opens it? A spreadsheet program, because of the .xlsx extension.
Example 2. The path is D:/Exams/Maths/formulas.pdf. Name the file and its folder. The file is formulas.pdf and its folder is Maths, which sits inside Exams on drive D.
The extension after the dot tells the OS what kind of file it is.
Key takeaways
- Files are stored in folders; the path shows where.
- The extension reveals the type of file.
- Copy keeps the original; move does not.
Check your understanding
-
1. Which extension shows a plain text file?
- .txt
- .mp3
- .jpg
- .exe
Show answer
Answer: A. .txt is plain text; .mp3 is audio, .exe a program and .jpg an image.
-
2. What does a file extension tell the operating system?
- When the file was last opened
- How large the file is
- Who created the file
- Which kind of file it is and which program should open it
Show answer
Answer: D. The extension after the dot tells the OS the file type and so which program opens it.
-
3. In the path D:/Exams/Maths/formulas.pdf, which folder directly holds formulas.pdf?
- D:
- Maths
- Exams
- formulas
Show answer
Answer: B. The file sits in Maths, which is inside Exams on drive D.
-
4. How is copying a file different from cutting and pasting it?
- Copy only works inside one folder
- Both delete the original
- Copy leaves the original in place; cut and paste moves it
- Copy deletes the original; cut and paste keeps it
Show answer
Answer: C. Copy makes a duplicate and keeps the original; cut and paste moves the file to the new place.
-
5. Where does a deleted file normally go first, so it can often be restored?
- Recycle Bin
- The taskbar
- The monitor
- RAM
Show answer
Answer: A. Delete sends the file to the Recycle Bin, from where it can often be restored.
Sign in to keep track of the lessons you finish.