Software Basics
File management is the operating system function that controls how files and folders are stored, named, accessed, moved and deleted. Without it, data would sit on a drive with nothing to say which chunk belonged to which file, and no program could find what it needed.
A drive is set up with a file system, which is the structure the operating system uses to organise data on it. It works like a set of nested folders: a top-level folder contains folders, which contain more folders and files. Each file has a path, such as Hobbies/Photography/sunset.png, and that path tells the operating system exactly where to look.
| Job | What the operating system does |
|---|---|
| Storing | Finds free space on the drive, writes the data there and records the location in an index so the file can be found again. |
| Naming | Checks the name follows the rules and is not already used in that folder, then uses the extension (.docx, .png) to link the file to the program that opens it. |
| Accessing | Looks up the index when a file is requested, follows the path, then passes the data to the program. |
| Moving and deleting | Updates the index so a file points at a new folder, or marks its space as free, without rewriting the whole drive. |
Saving a file called trip-plan.docx shows these jobs working together. The operating system checks the name is allowed, finds enough free space, writes the data there, and adds an index entry saying where it went. When you open it later, the operating system reads the index, follows the path and hands the data to the word processor, which never needs to know which part of the disk the file sits on.
Deleting a file usually just removes its index entry and marks the space as free, so the data may stay on the disk until something else overwrites it, which is why a deleted file can sometimes be recovered. File management is only one of the operating system's management jobs, but it decides where data is kept and how it is found again.
Edexcel GCSE Computer Science · Software Basics
Edexcel GCSE Computer Science · File Management
Edexcel GCSE Computer Science · Purpose & Function of Operating Systems