Linux - Free command (Memory)


Free is a linux command that display amount of free and used memory in the system

[root@ebs121 ~]# free
             total       used       free     shared    buffers     cached
Mem:       3042768     427420    2615348          0      49816     301648
-/+ buffers/cache:      75956    2966812
Swap:      2031608          0    2031608
  • The Mem: row displays physical memory utilization,
  • The Swap: row displays the utilization of the system swap space,
  • The -/+ buffers/cache: row displays the amount of physical memory currently devoted to system buffers (Linux Buffer)


free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]


  • -b,-k,-m,-g show output in bytes, KB, MB, or GB
  • -l show detailed low and high memory statistics
  • -o use old format (no -/+buffers/cache line)
  • -t display total for RAM + swap
  • -s update every [delay] seconds
  • -c update [count] times
  • -V display version information and exit


free -g | awk '/Mem:/ {print "Physical Memory: " $2 " GB."} /cache:/ {print "Resident: " $3 " GB."}'
Physical Memory: 266 GB.
Resident: 217 GB.

Documentation / Reference

Discover More
Linux - Memory

Process memory reports on Linux are difficult to interpret for various reasons. One of the main reasons is the way processes can share or re-use memory allocated to another process. Linux normally allocates...
Linux - Swap / Paging

swapping in an Linux Context. You created partitions of the type “swap” when you scheduled the hard disks during the installation of your Linux distribution. The Linux kernel usually does not require...
Bash Liste Des Attaques Ovh
Linux - Top Command

While free displays only memory-related information, the top command does a little bit of everything. CPU utilization, process statistics, memory utilization — top does it all. In addition, unlike the...
Card Puncher Data Processing
SAP ERP 6 EHP5 - Installation Java Linux

can be the same as the must follow the same restriction than the . Using the SAP Management Console (SAP MC) Using commands Installation...
Sap Hana Memory
Sap Hana - Memory Management for services

Memory Management for services If the MemUsed is close to the MemLimit , you may encounter problems allocating memory. Alternatively, you can run the Linux free command at the command line to see...
Sap Hana Memory
Sap Hana - OS Memory

OS ps:
Card Puncher Data Processing
Shell Data Processing - Awk (grep and sed) - Output filtering

The awk command is a filter that implements a language that is dedicated to text processing and combines the functions of: grep and sed AWK is a (tool|language) for event-based data processing....
Linux Performance Tools
What are the Metrics / Counters of Linux ?

This page is about the Hardware / Resource Performance Metrics management. They helps monitor the Linux System.

Share this page:
Follow us:
Task Runner