Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to view the system specs in linux
How to view the system specs in linux
Open terminal and type sudo dmidecode --type.
Don't click Enter yet! after --type, you can write bios or system, etc. to view the related specs.
For example: sudo dmidecode --type bios will display the BIOS specs.
Complete list of "What can I write after --type" (common parameters are in bold):
Base Board
Memory Controller
Memory Module
Port Connector
System Slots
On Board Devices
OEM Strings
System Configuration Options
BIOS Language
Group Associations
System Event Log
Physical Memory Array
Memory Device
32-bit Memory Error
Memory Array Mapped Address
Memory Device Mapped Address
Built-in Pointing Device
Portable Battery
System Reset
Hardware Security
System Power Controls
Voltage Probe
Cooling Device
Temperature Probe
Electrical Current Probe
Out-of-band Remote Access
Boot Integrity Services
System Boot
64-bit Memory Error
Management Device
Management Device Component
Management Device Threshold Data
Memory Channel
IPMI Device
Power Supply
lshw: Will give you a very comprehensive list of hardware and settings.
lspci: Will show you most of your hardware in a nice quick way.
It has varying levels of verbosity so you can get more information out of it with -v and -vv flags if you want it.
lscpu: List available cpus and their caracteristics.
If you ever need to get your hard drive’s model and serial number without physically looking at it,
you can do so with the hdparm command line utility.
This is especially useful if a manufacturer requires the serial number for an RMA or any other servicing needs.
In this example, we are retrieving the model and serial number of the system’s first drive that is labeled /dev/sda:
$ hdparm -I /dev/sda | grep -i number
Model Number: WDC WD5000AAKX-00ERMA0
Serial Number: WD-WMC2E0607821
If you also want to see the size of all the disks in a system, you can easily view the size with:
$ fdisk -l | grep -i ^Disk
Disk /dev/sda: 500.1 GB, 500107862016 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment