filesystem

The way an operating system organises files and folders on a disk or in memory.

In more detail

Files are named and arranged in folders, and the filesystem tracks where each file's bytes live on disk. On Unix-like systems such as Linux, everything hangs off one directory tree that starts at /, and different filesystems are mounted into it at different points.

Examples

Steps in one job share a filesystem; jobs do not.
A new EBS volume is formatted and mounted before use.
Twelve-factor processes may use the local filesystem only as a brief cache; uploads, sessions and compiled assets written there are lost when the process is replaced.
A filesystem such as ext4 organises the blocks of a disk into files, directories, names and metadata such as inodes. On Linux every filesystem is attached somewhere in one directory tree that starts at /. Some filesystems, such as /proc and /sys, are not stored on disk at all: the kernel generates their contents on demand.
Next.js Server Components in the Node.js runtime can read files; the Edge runtime has no filesystem access.
NTFS is the Windows file system whose MFT and USN journal record file history.
In this course: To a test the filesystem is a collaborator with state: files left behind by one test can make another pass or fail. Give each test its own temporary directory and assert the file contract: what exists, what it contains and what happens when it is missing.

Related terms

Taught in

References

Certification courses