One liner: To get available virtual memory10 December 2011vmstat -s -SM | grep "free memory" | awk -F" " '{print$1}'