Linux RAM Usage: How to Use the 'free' Command
HardReset.InfoDecember 16, 20254 min42 views
6 connectionsΒ·7 entities in this videoβUnderstanding the 'free' Command
- π‘ The
freecommand in Linux is used to check RAM and memory usage directly from the terminal. - π When run without options, it displays memory in hard-to-read numbers, showing columns for total, used, free, shared, buff/cache, and available memory.
Human-Readable Output
- π To make the output easier to understand, use the
-hoption for human-readable units (e.g., GB). - π For specific units, you can use
-gfor gigabytes or-mfor megabytes. - β οΈ Be aware that using
-gcan result in rounded numbers, potentially showing zero for very small values.
Real-Time Memory Monitoring
- β‘ The
freecommand can be used to monitor memory usage in real time by specifying a refresh interval. - β±οΈ For example,
free -g 2will refresh the output every two seconds, showing dynamic changes in RAM usage. - π» Opening applications like a web browser will visibly increase RAM usage and decrease free memory, which can be observed with the real-time view.
- π To stop the live monitoring, press
Ctrl + Con your keyboard.
Knowledge graph7 entities Β· 6 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
7 entities
Chapters2 moments
Key Moments
Transcript14 segments
Full Transcript
Topics10 themes
Whatβs Discussed
Linuxfree commandRAM usageMemory usageTerminalHuman-readable outputGigabytesMegabytesReal-time monitoringCommand line
Smart Objects7 Β· 6 links
ProductsΒ· 4
ConceptsΒ· 3