---
title: "File Systems: Names, Blocks and Metadata"
description: "A file system turns a flat array of blocks into names, directories and permissions. An inode or equivalent record holds where the blocks are and who may touch them, while the directory is just a table"
canonical: https://lightmysky.com/learn/computing/file-systems-names-blocks-and-metadata-mt_jN4u3idvF3
source: https://lightmysky.com/learn/computing/file-systems-names-blocks-and-metadata-mt_jN4u3idvF3.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# File Systems: Names, Blocks and Metadata

A file system turns a flat array of blocks into names, directories and permissions. An inode or equivalent record holds where the blocks are and who may touch them, while the directory is just a table mapping names to those records.

Subject: Computing · Area: Computer Systems · Ages 20 to 21
Page: https://lightmysky.com/learn/computing/file-systems-names-blocks-and-metadata-mt_jN4u3idvF3

## Ready when they can

- Follow a path name to the blocks that hold the file's bytes
- Explain what a hard link is in terms of the record it points at
- Say why deleting a large file can be instant while writing it was slow

## Lesson: Names point at records, records point at blocks

A path name is a map that walks from the top of the file system, folder by folder, to one exact file. Each folder is a table that points to the next folder down the chain. When you type a path, you spell out exactly that walk, until the last name points at the file itself.

**Example.** Type ls -l and you may see -rw-r--r--. After the first letter, nine letters come in three groups of three: read, write and run, for the owner, the group, and everyone else. Running chmod 600 myfile.txt gives the owner read and write and everyone else nothing. The permission note lives in the file system record, not in the file bytes, so changing it is instant.

That record, called an inode on Linux, holds two things: where the file blocks are, and who may touch them. The directory itself is only a table mapping names to those records. A hard link is simply a second name pointing at the same record, so one file can have two names.

**Tip.** Copying a file reads its bytes and writes a brand new file, so the system makes a new record and finds fresh blocks. Deleting a large file is instant by contrast, since only the small record changes while the slow part, writing every block, never runs in reverse. Always run ls -l again after chmod to confirm the letters say what you wanted.

**Recap.** Folders map names to records, records hold block locations plus permissions, and only the record changes on delete or chmod.

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Reading and Writing Files, Including CSV](https://lightmysky.com/learn/computing/reading-and-writing-files-including-csv-mt_j5qb4FdkdI)
- [Paging, Page Faults and Replacement Policies](https://lightmysky.com/learn/computing/paging-page-faults-and-replacement-policies-mt_nEEuGL89Ze)

## Opens up

- [Crash Consistency and the Journal](https://lightmysky.com/learn/computing/crash-consistency-and-the-journal-mt_I9DT0TUmiu)
