tmux-mem-cpu-load/screen-mem-usage

10 lines
197 B
Plaintext
Raw Permalink Normal View History

2009-09-09 02:28:04 -04:00
#!/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