What My PC has got, The Hardware?
I am pretty sure that most of you guys are interested about the hardware specs of your PC. Most of you may already know it..
But here I am gonna just show the methods to know iff u don`t ..
In windows, one may have used softwares like that of Belarc Advisor and others OR if you are a system programmer then you may have used API to get the details of your hardware. ex-GetSystemInfo function.
Oops, what all I have got???
But what in case of Linux???
Those things wont work, You already know it!!!
So, lets check it out through the SHELL
$dmidecode (one of my fav. commands)
As what its README in source code syas, Dmidecode reports information about your system’s hardware as described in your system BIOS according to
the SMBIOS/DMI standard. This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details of varying level of interest and reliability depending on the manufacturer. This will often include usage status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of I/O ports (e.g. serial, parallel, USB).
NOTE: Beware that DMI data have proven to be too unreliable to be blindly trusted. Dmidecode does not scan your hardware, it only reports what the BIOS told it..
It may be the case that you don`t have this command/utility on your system..so just download it
#tar zxvf dmidecode-2.9.tar.gz
and as usual go through the source code and make and make install it..(NO need to configure..if you look config file is already present)
lshw – lshw shows a comprehensive list of devices connected to our system and their info.
for a smaller output, you may use,
For getting the information about the devices attached to the PCI bus,
To get the info about the attached USB devices,
Use the above mentioned commands along with the grep command so as to filter out the content because if you use it normally Your terminal will be thrown with a lot data.
For more commands, Plz. do update me too through your comments!!
Posted on June 23, 2012, in Linux and tagged command, dmidecode, hardware, lspci, lsusb, shell. Bookmark the permalink. Leave a comment.