Using the the free command: % free total used free shared buffers cached Mem: 2061712 490924 1570788 0 60984 220236 -/+ buffers/cache: 209704 1852008 Swap: 587768 0 587768 Based on this output we grab the line with Mem and using awk pick specific fields for our computations. This will report the percentage of memory in Full Article…
Viewing 1 item
free