One liner: To get available virtual memory Posted on 10 December 2011 By Shafiq Alibhai vmstat -s -SM | grep "free memory" | awk -F" " '{print$1}'