Here are some really useful Linux commands that helps you examine what kind of computer hardware you have and it’s status.
Table of Contents
BIOS Version
~ sudo dmidecode -s bios-version SYSKLi35.86A.0071.2019.0524.1102
BIOS Date
~ sudo dmidecode -s bios-release-date 05/24/2019
CPU Data
To see how many cores / threads / sockets:
lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
Or just the basic info of how many cores:
grep -c ^processor /proc/cpuinfo
Disk Model
hdparm -I /dev/sda | grep -i model
Hard Drive Model and Serial
lsblk -o +MODEL,SERIAL
Hard Drive by ID
ls /dev/disk/by-id
Mirror Status
mdadm -D /dev/md0
Motherboard Model
~ sudo dmidecode -s baseboard-product-name NUC6i3SYB
Motherboard / Computer Manufacturer
~ sudo dmidecode -s baseboard-manufacturer Intel corporation
Motherboard & RAM
This is useful if you want to know if you can upgrade a laptop:
~ sudo dmidecode -t 2 [sudo] password for root: # dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.7 present. Handle 0x000E, DMI type 2, 16 bytes Base Board Information Manufacturer: Hewlett-Packard Product Name: 22DA Version: KBC Version 92.15 Serial Number: REDACTED Asset Tag: Not Specified Features: Board is a hosting board Board is replaceable Location In Chassis: Chassis Handle: 0x000F Type: Unknown Contained Object Handles: 0 ➜ ~ free -m total used free shared buff/cache available Mem: 7837 4387 627 771 2822 2381 Swap: 975 764 211
In the instance above, it appears it’s an HP 22DA and has 8GB RAM. Some googling determined that the motherboard uses DDR3L PC3-12800 SDRAM (1600 MHz) and is upgradable to 16GB.
See also
- https://kb.vander.host/operating-systems/how-to-upgrade-supermicro-bios-and-ipmi/
- https://kb.vander.host/disk-management/how-to-mount-a-usb-disk-on-freebsd/
References
- https://winaero.com/find-motherboard-model-linux/
- https://wiki.ubuntu.com/DellBIOS
- https://www.linuxquestions.org/questions/linux-general-1/command-to-check-the-chipset-of-mainboard-839486/