I'm trying to determine what type of RAM a computer has (whether it's DDR2 or DDR3).
I've tried several commands:
-
sudo lshw -short -C memory
outputs this:H/W path Device Class Description =================================================== /0/2 memory 1980MiB System memory
-
sudo dmidecode -t memory
outputs this:# dmidecode 2.12 # No SMBIOS nor DMI entry point found, sorry.
-
sudo dmidecode | grep -A 15 Memory
outputs nothing. -
I also tried looking in
hardinfo
under "Devices>Memory" but I can't find out the type.
Edit:
-
sudo lshw -C memory
outputs this only:*-memory description: System memory physical id: 2 size: 1980MiB
Best Answer
Use
sudo lshw -c memory
without the-short
option.Here's an example output:
You see the RAM type in the
description
field of every memory bank, like here: