linux check memory size in gb code example Example: free memory linux command # sync; echo 1 > /proc/sys/vm/drop_caches