Computer File Management
File management is the process of organising, storing, naming, and retrieving files on a computer. Every document, image, video, and program on your computer is a file. Managing these files well saves time, prevents data loss, and keeps your system running efficiently.
What is a File?
A file is a named collection of data stored on a storage device. Files can contain text, images, audio, video, software code, or any other type of digital data. Each file has a name and an extension that identifies what kind of data it contains.
Example file: report_2024.docx report_2024 ← File name (you choose this) .docx ← Extension (tells the OS and apps what type of file this is)
Common File Extensions
Extension │ File Type ──────────┼──────────────────────────────── .txt │ Plain text file .docx │ Microsoft Word document .pdf │ Portable Document Format .xlsx │ Microsoft Excel spreadsheet .jpg/.png │ Image files .mp3/.wav │ Audio files .mp4/.avi │ Video files .exe │ Windows executable (program) .zip/.rar │ Compressed archive .html │ Web page file .py │ Python script (code)
What is a Folder (Directory)?
A folder (also called a directory) is a container that holds files and other folders. Folders let you organise related files in one place, just like a physical folder in a filing cabinet holds related paper documents.
Folders can contain other folders — these are called subfolders. This creates a tree structure called the directory tree.
The Directory Tree
C:\ (Root)
├── Windows\
│ ├── System32\
│ └── Fonts\
├── Users\
│ └── Anita\
│ ├── Documents\
│ │ ├── Work\
│ │ │ └── report.docx
│ │ └── Personal\
│ │ └── budget.xlsx
│ ├── Pictures\
│ │ └── holiday.jpg
│ └── Downloads\
└── Program Files\
└── Chrome\
This tree starts at the root (C:\ on Windows or / on Linux/macOS) and branches outward. Each branch is a folder, and the leaves at the end of branches are individual files.
File Paths
A file path is the full address of a file on a computer. It tells the OS exactly where to find the file by listing every folder from the root to the file itself.
Windows path: C:\Users\Anita\Documents\Work\report.docx Linux/Mac path: /home/anita/documents/work/report.docx
Two types of paths exist:
- Absolute path: Starts from the root. Always finds the file regardless of where you currently are.
- Relative path: Starts from the current location. Shorter, but only works when you are in a specific folder.
Core File Operations
Operation │ What It Does ───────────┼────────────────────────────────────────────── Create │ Makes a new, empty file or folder Open │ Loads a file into an application for viewing/editing Save │ Writes current data to a file on storage Copy │ Creates a duplicate — original stays, copy goes to new location Move / Cut │ Transfers file to a new location — original is removed Rename │ Changes the file or folder name Delete │ Removes the file (moves to Recycle Bin on Windows) Search │ Finds a file by name, type, date, or content
The Recycle Bin / Trash
When you delete a file on Windows (Recycle Bin) or macOS (Trash), the file is not immediately erased from storage. It moves to a temporary holding area. You can restore the file from there if you delete it by mistake.
When you empty the Recycle Bin, the OS marks that storage space as available for new data. The file data still physically exists on the drive until new data overwrites it — which is why file recovery software can sometimes retrieve "deleted" files.
File Attributes and Metadata
Every file has metadata — data about the data. This includes:
- File name
- File size (in bytes, KB, MB, etc.)
- Date created
- Date modified
- File type / extension
- Permissions (who can read, write, or execute this file)
File Permissions
File permissions control who can do what with a file. This is especially important on shared computers and servers.
Permission │ Meaning ────────────┼──────────────────────────────────────────── Read (r) │ Can view the file's contents Write (w) │ Can modify the file's contents Execute (x) │ Can run the file as a program
In Linux, permissions are assigned for three groups: the file owner, the owner's group, and everyone else. On Windows, permissions work through Access Control Lists (ACLs), which can be set in detail per user or user group.
File Compression
File compression reduces the size of one or more files by replacing repetitive patterns with shorter codes. A compressed file takes less storage space and transfers faster over the internet.
- Lossless compression: No data is lost. The original file can be perfectly restored. Used for documents, code, and executables. Formats: .zip, .7z, .rar, .gz.
- Lossy compression: Some data is permanently removed to achieve higher compression. Used for photos, audio, and video where minor quality loss is acceptable. Formats: .jpg (images), .mp3 (audio).
File System Types
The file system is the system the OS uses to organise and keep track of all files on a storage device.
File System │ Used By │ Key Feature ────────────┼────────────────────┼────────────────────────────── NTFS │ Windows │ Supports large files, permissions, encryption FAT32 │ USB drives, cameras│ Compatible with almost all devices exFAT │ USB drives, SD │ FAT32 successor; supports files over 4 GB APFS │ macOS, iOS │ Optimised for SSDs; encryption built in ext4 │ Linux │ Reliable, widely used on Linux systems
Best Practices for File Management
- Use clear, descriptive file names (not "document1.docx" but "tax_return_2024.docx").
- Organise files into logical folder structures so they are easy to find later.
- Back up important files regularly to an external drive or cloud storage.
- Delete files you no longer need to free up storage space.
- Never delete a file unless you know what it is — some system files are essential.
Good file management habits prevent the frustration of lost data and keep your computer organised and fast over years of use.
