check ram used in linux code example Example 1: linux check ram frequency sudo lshw -short -C memory Example 2: how to get ram detail in linux sudo dmidecode --type 17