Skip to main content

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 free command 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 -h option for human-readable units (e.g., GB).
  • πŸ“ˆ For specific units, you can use -g for gigabytes or -m for megabytes.
  • ⚠️ Be aware that using -g can result in rounded numbers, potentially showing zero for very small values.

Real-Time Memory Monitoring

  • ⚑ The free command can be used to monitor memory usage in real time by specifying a refresh interval.
  • ⏱️ For example, free -g 2 will 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 + C on 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