tmux-mem-cpu-load/screen-mem-usage
Matt McCormick (thewtex) 627dab275c start with the scripts
2009-09-09 01:28:04 -05:00

10 lines
197 B
Bash
Executable File

#!/bin/sh
total_mem=$(free -m | awk '$1 == "Mem:" { print $2 }')
while(true); do
current_mem=$(free -m | awk '$1 == "-/+" { print $3 }')
echo "${current_mem}MB/${total_mem}MB"
sleep 3
done