The free command displays the idle, used physical memory and swap memory in the Linux system, and the buffer used by the kernel.
[Email protected]:~$ free-h
Total used free shared buff/cache available
mem:3.8g 1.3G 928M 27M 1.7G 2.2G
swap:4.0g 0B 4.0G
Total:total installed memory (memtotal and Swaptotal in/proc/meminfo)
Used:used memory (calculated as Total-free-buffers-cache)
free:unused memory (Memfree and Swapfree in/proc/meminfo)
Shared:memory used (mostly) by Tmpfs (Shmem In/proc/meminfo, available on kernels 2.6.32, displayed as zero if
Not available)
Buffers:memory used by kernel buffers (buffers in/proc/meminfo)
Cache:memory used by the page cache and slabs (Cached and Slab in/proc/meminfo)
Buff/cache:sum of buffers and cache (A buffer is something that have yet to being "written" to disk. A cache is something that have been "read" from the disk and stored for later use.)
Available:estimation of how much memory are available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes to account page caches and also that isn't all RECLA Imable memory slabs'll be reclaimed due to items being in use (Memavailable in/proc/meminfo, available on kernels 3.14, Emulated on Kernels 2.6.27+, otherwise the same as free)
LINUX Note-free command