#vmstat
/usr/bin/vmstat 2 2 |tail -n 1 |awk '{print $3; print 100-$16}'

computer2know :: thank you for your visit :: have a nice day :: © 2018