Files and Folders

Files and folders help us store and organize information on computers, smartphones and other digital devices.

A file contains information, while a folder holds and organizes files and other folders.

For example:

  • A photograph is stored as an image file.
  • A school assignment is stored as a document file.
  • A “School Work” folder can contain both files.

What Is a File?

A file is a collection of related information stored on a digital device with a specific name.

A file may contain:

  • Text
  • Photographs
  • Music
  • Videos
  • Programs
  • Presentations
  • Spreadsheets
  • Other digital information

Real-Life Example

A file is similar to a document kept inside an office cabinet.

A paper document contains information. In the same way, a computer file contains digital information.

Examples include:

  • Homework.docx
  • Holiday.jpg
  • Budget.xlsx
  • Song.mp3
  • Tutorial.mp4

Parts of a File Name

A file name normally has two main parts:

flowchart LR
    A["Computer Notes"] --> B["File name"]
    C[".pdf"] --> D["File extension"]
    B --> E["Computer Notes.pdf"]
    D --> E

In Computer Notes.pdf:

  • Computer Notes is the file name.
  • .pdf is the file extension.

The extension helps the computer understand the file’s format and which application can open it.

Common File Types and Extensions

File categoryCommon extensionsExample
Text file.txtNotes.txt
Word document.docxAssignment.docx
PDF document.pdfBook.pdf
Image.jpg, .pngPhoto.jpg
Audio.mp3, .wavSong.mp3
Video.mp4, .mkvLecture.mp4
Spreadsheet.xlsx, .csvMarks.xlsx
Presentation.pptxProject.pptx
Program.exe, .appSetup.exe
Compressed file.zip, .rarDocuments.zip

Changing only the extension does not convert the actual file.

For example, renaming Photo.jpg to Photo.pdf does not turn the image into a PDF document.

What Is a Folder?

A folder is a digital container used to organize files and other folders.

A folder itself usually does not contain information like a document or photograph. Instead, it provides a place to arrange related items.

Real-Life Example

Think of a school bag:

  • The school bag is a folder.
  • Books and notebooks are files.
  • A smaller pencil case inside the bag is a subfolder.

Similarly, one computer folder can contain files and smaller folders.

What Is a Subfolder?

A subfolder is a folder created inside another folder.

For example, a student can create:

  • Main folder: School Work
  • Subfolder: Computer
  • Subfolder inside Computer: Assignments

This creates a clear structure.

flowchart TD
    A["School Work"]
    A --> B["Computer"]
    A --> C["English"]
    B --> D["Assignments"]
    B --> E["Notes"]
    D --> F["Homework.docx"]
    E --> G["Chapter 1.pdf"]

In this diagram:

  • School Work is the main folder.
  • Computer and English are subfolders.
  • Assignments is a subfolder inside Computer.
  • Homework.docx is a file.

Difference Between a File and Folder

FileFolder
Contains digital informationOrganizes digital items
Usually has a file extensionNormally does not need an extension
Opens in an applicationOpens in a file manager
Can contain text, audio, images or videoCan contain files and subfolders
Example: Report.pdfExample: Reports

Simple Example

Holiday Photos is a folder.

Inside it, the following may be files:

  • Beach.jpg
  • Hotel.jpg
  • Family.jpg

What Is a File System?

A file system is the method an operating system uses to store, name and organize files and folders on a storage device.

It helps the computer determine:

  • Where a file is stored
  • What the file is called
  • How large the file is
  • Which folder contains it
  • Who can access it

Without a file system, finding information on a hard drive or SSD would be extremely difficult.

Folder Hierarchy

Files and folders are arranged in a tree-like structure called a folder hierarchy or directory structure.

flowchart TD
    A["This PC"] --> B["Local Disk C:"]
    B --> C["Users"]
    C --> D["Student"]
    D --> E["Documents"]
    E --> F["Computer Course"]
    F --> G["Files and Folders.pdf"]

Each level takes us closer to the file’s location.

What Is a File Path?

A file path is the complete address of a file or folder on a device.

Example:

C:\Users\Student\Documents\Computer Course\Notes.pdf

This path shows that:

  1. The file is on the C: drive.
  2. It is inside Users.
  3. It is inside the Student folder.
  4. It is inside Documents.
  5. It is inside Computer Course.
  6. The file name is Notes.pdf.

A file path works like a postal address. It tells the computer exactly where an item is located.

Common Folders on a Computer

Desktop

Contains files, folders and shortcuts shown on the main screen.

Documents

Commonly used for assignments, reports, letters and other documents.

Downloads

Stores files downloaded from browsers and applications.

Pictures

Used for photographs and images.

Videos

Stores video files.

Music

Used for songs and other audio files.

Recycle Bin or Trash

Temporarily stores many deleted files so they can be restored before permanent removal.

Common File and Folder Operations

Users can perform several operations on files and folders.

OperationMeaning
CreateMake a new file or folder
OpenView or use an item
SaveStore changes made to a file
RenameChange the item’s name
CopyCreate another version in a different location
MoveTransfer the original item to another location
DeleteRemove an item
RestoreRecover an item from Recycle Bin or backup
SearchFind an item using its name or other details
CompressReduce or package files into an archive
ShareSend or provide access to another user

Copy vs Move

Copying and moving are not the same.

flowchart TD
    A["Original file"]
    A --> B{"Choose operation"}
    B -->|Copy| C["Original remains"]
    C --> D["Second copy created"]
    B -->|Move| E["Original changes location"]

Copy Example

A student copies Assignment.docx from the laptop to a USB drive.

The file now exists in both locations.

Move Example

The student moves Assignment.docx from the Desktop to the Documents folder.

The file is removed from the Desktop and appears in Documents.

How to Organize Files Properly

Good organization makes information easier to find.

Use Clear Folder Names

Good examples:

  • University Assignments
  • Family Photos
  • Bank Statements
  • Website Articles

Avoid unclear names such as:

  • New Folder
  • Stuff
  • Other
  • 123

Use Descriptive File Names

Instead of:

Document1.docx

Use:

Computer-Network-Assignment.docx

Create Subfolders

Example:

flowchart TD
    A["Studies Blueprint"]
    A --> B["Computer Fundamentals"]
    A --> C["Computer Networks"]
    B --> D["Published Articles"]
    B --> E["Article Drafts"]
    C --> F["Images"]
    C --> G["Research"]

Add Dates When Useful

Examples:

  • Bank-Statement-2026-08.pdf
  • Website-Backup-2026-08-23.zip
  • Meeting-Notes-2026-08-23.docx

Using the YYYY-MM-DD date format helps files sort in the correct order.

File and Folder Safety

  • Do not open unknown files.
  • Scan downloaded files with antivirus software.
  • Back up important folders.
  • Do not delete system files.
  • Check a file before changing its extension.
  • Protect private folders with proper permissions.
  • Avoid storing everything on the Desktop.
  • Empty the Recycle Bin only after checking its contents.
  • Keep important files in more than one safe location.

Files and Folders on Different Devices

Files and folders exist on many devices:

  • Desktop computers
  • Laptops
  • Smartphones
  • Tablets
  • USB drives
  • External hard drives
  • Memory cards
  • Cloud storage

The appearance may differ, but the basic purpose remains the same: files store information and folders organize it.

Topics Covered in This Chapter

This pillar page introduces the main ideas that can be studied separately:

  • Files and file types
  • Folders and subfolders
  • File names and extensions
  • File and folder operations
  • File paths and directory structures
  • Creating and organizing folders
  • Searching for files
  • Copying and moving files
  • Deleting and restoring files
  • File compression
  • File permissions
  • Hidden and system files
  • Local and cloud files

Frequently Asked Questions

Can a Folder Contain Another Folder?

Yes. A folder inside another folder is called a subfolder.

Can Two Files Have the Same Name?

Two files can have the same name if they are stored in different folders. A single folder normally cannot contain two files with exactly the same name and extension.

Does a Folder Have a File Extension?

Folders normally do not require file extensions.

Where Do Deleted Files Go?

Many operating systems temporarily move deleted files to the Recycle Bin or Trash. Files deleted permanently or from some external devices may not go there.

What Is the Difference Between Save and Save As?

Save updates the current file. Save As creates a new file name, format or storage location.

What Is a File Manager?

A file manager is an application used to view and manage files and folders. Examples include File Explorer on Windows and Finder on macOS.

Conclusion

A file stores digital information, while a folder organizes files and other folders.

Remember:

  • File = stored information
  • Folder = digital container
  • Extension = file format
  • File path = location address
  • Subfolder = folder inside another folder
  • File manager = tool used to manage files and folders

Understanding files and folders is essential for using computers, organizing work, finding information and protecting important data.

Continue Learning