Kolam Ayer MakersLinux Foundations

File

Core Idea

A file is a named filesystem object that usually stores bytes plus metadata such as owner, permissions, size, and timestamps.

Commands To Try

ls -l ~/src/pages/index.md
stat ~/src/pages/index.md
file ~/src/pages/index.md
cat ~/src/pages/index.md

ls -l shows compact metadata. stat shows detailed metadata. file guesses content type. cat prints file bytes as text.

Content Versus Metadata

File content is the bytes inside the file. Metadata is information about the file: name, owner, group, mode, size, timestamps, and type. Editing a file changes content. chmod changes permission metadata.

Source Versus Generated File

In this course:

Edit source. Rebuild generated files.

Common Confusions

Proof Check

Run stat on one source file and identify size, owner, permissions, and modification time.

Docs Pointers