How to check RAM speed and type from command line?

Yeah, I want to know about those details without opening my CPU chassis. Is it possible to check the memory (RAM) details via server CMI (command line interface)?

Yes, this would be helpful, if you want to purchase RAM and to know the exact speed and type installed. This can be done via server shell using the command “dmidecode” which includes with the “biosdecode” command line utility. Dmidecode is a tool or dumping a computer’s DMI (SMBIOS) table contents in a human-readable format. The output contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. This command works under Linux, UNIX and BSD computers.

Here I directly going to explain how to check the RAM details by using the “dmidecode” command.

1. Open command prompt.
2. Execute the following command:

sudo dmidecode --type 17

Or you can use:

sudo dmidecode --type 17|less

You can see a lot of details from the output. Please see the sample output below:

root@my-workstation:~# dmidecode --type 17
# dmidecode 2.12
SMBIOS 2.5 present.

Handle 0x0027, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0025
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: 64 bits
Size: No Module Installed
Form Factor: Other
Set: None
Locator: DIMM A1
Bank Locator: BANK0
Type: DDR2
Type Detail: None
Speed: Unknown
Manufacturer: Manufacturer0
Serial Number: SerNum0
Asset Tag: AssetTagNum0
Part Number: PartNum0

Handle 0x0029, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0025
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: DIMM B1
Bank Locator: BANK1
Type: DDR2
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: Manufacturer1
Serial Number: SerNum1
Asset Tag: AssetTagNum1
Part Number: PartNum1

You can see a lot details from the above output instead of the type and speed.
That’s it!!

, ,

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

One thought on “How to check RAM speed and type from command line?

  1. Yes, of course, you can check the speed of your ram by coding, this article also has great information about it. If you want to know about it I suggest going through this article it has pretty good information. Keep sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *