Problem Statement
Which command displays memory and swap usage in Linux?
Explanation
The free command shows total, used, and available memory including swap space.
The -m or -h flag can display values in megabytes or human-readable format.
Code Solution
SolutionRead Only
free -h
Practice Sets
This question appears in the following practice sets: