awk '/^MemTotal/ { t = $2 } /^MemFree/ { f += $2 } /^Buffers/ { f += $2 } /^Cached/ { f += $2 } END { print ( t - f ) * 100 / t }' /proc/meminfo