how find ram size in linux code example Example 1: linux ram size $ cat /proc/meminfo Example 2: check ram arch linux cat /proc/meminfo | grep Mem