check ram amount linux code example Example 1: linux check ram frequency sudo lshw -short -C memory Example 2: linux ram size $ cat /proc/meminfo