create your own free is the command to see memory usage... So something like free swap would just need "free | awk '{print $4}' | tail -1"