how to get memory size in gb in linux code example Example: check vm ram details in linux sudo dmidecode -t 17