Bash Script Linux Free Memory Over Time
June 20, 2018 | 2 Minute Read
Linux free memory/swap for a period of time and Top memory consumer
Lets write a tiny bash script to record free memory and free swap every 1 seconds to a file for a total of 5 seconds.
Basc Script
One liner
Result/Output
Output of sample bash commands
Top offender/ memory consumer process name