Bash Script Linux Free Memory Over Time
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.
Output of sample bash commands
Top offender/ memory consumer process name