l5


"/home/yossef/notes/Su/os2/l5.md"

path: Su/os2/l5.md

- **fileName**: l5
- **Created on**: 2026-01-04 21:22:39

File-System Interface โ€“ Simple Explanation

This explanation covers the full lecture on File-System
Interface
from the sources, using simple language to make
it easy to understand.

1. What is a File? (File Concept)

A file is a way to store information in a "contiguous logical
address space". This means the computer sees it as one
continuous piece of data.

2. How do we use Files? (Operations & Locking)

The OS performs several tasks on files:

3. How are Files Organized? (Directory & Disk Structure)

4. Directory Organization Types

The sources describe different ways to organize directories:

  1. Single-Level: One big folder for everyone. This makes
    naming and grouping files difficult.

  2. Two-Level: Each user gets their own folder. You use
    Path Names to locate files.

  3. Tree-Structured: The most common type. Folders can
    have subfolders. You can use Absolute paths (from the
    root) or Relative paths (from the current location).

  4. Acyclic-Graph: Allows sharing folders or files. One
    file can have multiple names (Aliasing).

  5. General Graph: Allows complex links, but care must be
    taken to avoid Cycles (endless loops).

5. Mounting and Sharing

6. Consistency and Protection (Security)

Analogy

Think of the File System as a huge library.

mind map

images/15_mind_map.png|500

continue:[[]]
before:./l4.md