Linux Get Memory Slot Info

Learning the common Linux-based commands is essential to get the best of the benefits that this OS brings. Though, putting an accent on some more specific commands will improve your work and will provide you and even more freedom and opportunities with your Linux job. So speaking of all of these, we have decided to give you some information and tips for one specific, but very important and interesting Linux-based command – the lshw command. Find out what it is and how to use it right away with our simple, brief and very beneficial tutorial.
The lshw command is, as a matter of fact, a small, but significant tool that gives you a chance to extract detailed info on your hardware configuration of the machine you use with Linux OS (Ubuntu, Debian or any other distro). Mainly, the command might also report physical memory configuration, firmware version, as well as CPU version and speed, several cache configuration possibilities, mainboard configuration and the bus speed on the DMI-capable x86, as well as on IA-64 systems. If you wonder abbreviation lshw comes from Hardware Lister put in opposite order.
In other words, the lshw Linux-based command offers you detailed of all the hardware files that are stored and used on your personal PC. Meanwhile, these details run the gamut of processors, memory, onboard sound, as well as the video chipsets and many others. The nifty command arranges the utility, which processes the detailed reports, when it comes to several different hardware components in a Linux-based system. The particular way the lshw does is by reading the different files in directory. But let`s begin with the lshw command usage tutorial to make it much clearer for you. Another article in this series is How To Check Ubuntu Version written a couple of months ago.

This is our sixth post on getting hardware information. In this post we will see how to get RAM details such as size, speed, make, maximum capacity allowed RAM etc. We already covered some hardware related stuff in this series so far as given below. Get BIOS, Firmware, Hardware And Drivers Details in Linux/Unix What.

Advertisements

How to install the lshw?

If you are either an Ubuntu, Fedora, or Debian user, then, you can get the lshw command from your default repositories. If you are using Debian or any Debian derivative such as Ubuntu or Linux Mint just type.

If you are using Fedora or Cent Linux use yum.

Lshw is a command line tool, but if you prefer to use GUI then you can install lshw-gtk which is GTK based front end to lshw.

Advertisements

Re: How to view the memory size (RAM size) If lot of diagnostic messages are being logged to system buffer, the dmesg wont be able to show your the Physical memory Better way as suggest above is printmanifest or machinfo from the OS. I want to get number of RAM slot (DIMM) and CPU socket of a PC in Linux. In Linux, there's a command dmidecode but this command must run with sudo/root permissions. Anyone can tell me another solution to get DIMM & CPU socket without using sudo/root permissions.

Linux Get Memory Slot Information

To run GUI just type lshw-gtk. Remember that you need to run GUI with root privileges, so don’t forget to use sudo.

How to use lshw command to detect hardware?

If you want your lshw command to detect and report most of the information on your system, it must run as root. Another alternative is to use the sudo option.
The lshw groups the different components in the hardware into several categories that are named classes. Such classes are the following components – the memory, display, processor, network and many others like the storage component, for instance.

How to find the entire hardware info?

If you decide to run the lshw command without inputting any particular option, it will process the entire information and will get you an overall report about all of the detected hardware components. Thus, the entire generation will be full of many technical details.

How to present the hardware information in brief?

Get

To present the information in brief, you will need to run the command lshw with the -short option. Thus, it will generate a report about particular hardware components, which will show you faster the main look of your hardware profile, as well as of the system.
This output can be simply interpreted. Thus, the result is the following: the device is with a processor Intel, as well as with 1 network adapter, few USB ports, 4RAM slots, 300 GB hard drive with one main partition. Note that the third column of the above codes shows the name of the class. This is due to the fact that the Lshw command is able to show the information only about a single class, if you input the -class feature.

How to present only the information about the memory?

Check out how to present the information about the memory by using of the memory class parameter.

How to find the information about the processor?

The lshw command will present the information about the cpu with the class named processor. It is highly recommended to avoid using the parameter short in order to get all of the details about the processor. Note that lshw command actually does not show the numbers of cores or the available processing units very precisely. Looking above, you will see that the system had 4-core processor with 4 main units. Though, there is one other Linux command – the lscpu – which can, as a matter of fact, show you more precise information as to the cpu.

How to determine the disk drives?

To present the disk drives, use the disk class. You can also show the info about the components, as well as about the controllers, when you specify the storage and the volume class together with the main disk class. In this way, you will get presented some better and more precise information about your system storage.

Size

How to find the information about the Network adapter?

If you want to get and show the information about the network adapter or interface, then, you need to apply the network class. Here, it is recommended to avoid the short feature, as well, in order to receive the full and detailed information about the network adapter or interface. Keep in mind that estimation of the serial field is actually the MAC address. Also, the configuration field shows that the autonegotiation is on and 100Mbit/s is the present speed of the operating system. You are able to change the configurations by using the ethtool command.

How to find the details of the address by using the businfo?

Linux Command For Memory Info

You can apply the businfo feature and the lshw will generate the address details of the following: pci, scsi, ide and usb devices. Here, the output is almost the same as the “short” feature – see the 1st column that can be replaced with the businfo.

As a conclusion we must tell you that all of the illustrations we have showed you are almost all of the lshw command options. You can also take the benefit of the lshw-gtk, which is a GUI that shows reports of the same info, but in a more minimal interface. Also, you can find many other GUI tools in the web that will give you the same opportunities for a more organized manner of the shown reports.