Kolam Ayer MakersLinux Foundations

Filesystem

Core Idea

A filesystem organizes persistent data into directories, files, metadata, and permissions.

What You See As A User

pwd
ls -la
stat ~/src/pages/index.md
find ~ -maxdepth 2 -type f

Paths are names. Files have content. Directories contain names. Metadata includes owner, group, permissions, size, timestamps, and type.

Important Path Ideas

Filesystem Metadata

ls -l gives a compact view. stat gives a detailed view.

stat ~/src/pages/index.md

Look for file type, size, owner, group, permissions, and timestamps.

Mounts And Virtual Filesystems

Some filesystem paths are not ordinary disk files. /proc exposes process and kernel information. /dev/null is a special device that discards bytes. These are still accessed through filesystem paths.

Common Confusions

Proof Check

Run stat ~/src/pages/index.md and identify owner, permissions, size, and modification time.

Docs Pointers