Kolam Ayer MakersLinux Foundations

Memory

Core Idea

Memory is hardware working storage that the CPU can access quickly.

Memory is fast working storage used by running processes and the kernel. Files persist on disk; memory usually disappears when a process exits or the machine restarts.

Commands To Try

free -h
ps aux --sort=-%mem | head
htop

free -h shows memory totals in human-readable units. ps and htop show process memory usage.

Virtual Memory

Processes see virtual memory, not direct physical RAM. The kernel maps virtual memory to RAM, files, shared libraries, and sometimes swap. This lets processes be isolated from each other.

Common Fields

Common Confusions

Proof Check

Run free -h and identify total memory, used memory, free memory, and available memory.

Docs Pointers