# File System

> How a computer keeps files on a disk. It tracks names, places and folders.

**Field:** Software Development  
**Category:** Platforms & OS  
**Also known as:** Filesystem, NTFS, APFS, ext4, FAT32, exFAT

## Think of it like

Think of it like a library's card system. The books sit on shelves, and the cards say where each one is.

## Definition

A file system is the way a computer stores files on a disk. It keeps each file's name, size and place. It sorts files into folders inside folders. It also tracks who may read or change each file. Each system has its own kind. Windows uses NTFS, macOS uses APFS and Linux most often uses ext4.

## Example

Emma plugs a USB stick from her Mac into a Windows PC. Windows cannot read it, because the stick uses APFS.

## Example code

```console
$ df -hT /
Filesystem  Type  Size  Used Avail Use% Mounted on
/dev/sda1   ext4   50G   12G   36G  25% /
```

This Linux disk uses ext4. It shows how much space is used and free.

## Why it matters

A disk is just numbers until a file system gives it names and folders. The wrong kind can make a drive hard to read elsewhere.

## Common mistake

Formatting a shared drive with a type only one system reads. Pick one that every computer it meets can read.

## Three principles

- **Names and places.** It records where each file lives.
- **A tree of folders.** Folders hold files and other folders.
- **Owners and rights.** It tracks who may read or write.

## Related terms

- [Directory](https://learn.benibix.com/term/development/directory)
- [File Path](https://learn.benibix.com/term/development/file-path)
- [Operating System (OS)](https://learn.benibix.com/term/development/operating-system)
- [Kernel](https://learn.benibix.com/term/development/kernel)
- [System Call](https://learn.benibix.com/term/development/system-call)

## Taught in

- [File Systems: NTFS, APFS, ext4](https://learn.benibix.com/learn/development-platforms/file-systems-ntfs-apfs-ext4): OS and Files, 8/10

![A tree of boxes. The root, a slash, holds home and etc. Home holds emma and jack. Emma holds two files, notes.txt and photo.png. The boxes from the root to notes.txt are lit up. Under the tree, the path to that file is written out twice: /home/emma/notes.txt on Linux and macOS, and C:\Users\Emma\notes.txt on Windows.](https://learn.benibix.com/diagrams/dev-file-tree.svg)

---

Source: https://learn.benibix.com/term/development/file-system
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
