lshw
December 04, 2016
To print information about your Linux system hardware, run this command.
$ apt-get install lshw
🔗lshw
root@server:/# lshw -short
H/W path Device Class Description
==================================================
system Computer
/0 bus Motherboard
/0/0 memory 3020MiB System memory
/0/1 processor Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
/0/2 processor Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
/0/100 bridge 440FX - 82441FX PMC [Natoma]
/0/100/1 bridge 82371SB PIIX3 ISA [Natoma/Triton II]
/0/100/1.1 storage 82371SB PIIX3 IDE [Natoma/Triton II]
/0/100/1.2 bus 82371SB PIIX3 USB [Natoma/Triton II]
/0/100/1.2/1 usb1 bus UHCI Host Controller
/0/100/1.2/1/1 input QEMU USB Tablet
/0/100/1.3 bridge 82371AB/EB/MB PIIX4 ACPI
/0/100/2 display GD 5446
/0/100/3 eth0 network Virtio network device
/0/100/4 storage Virtio SCSI
/0/100/5 generic Virtio memory balloon
/0/3 scsi2 storage
/0/3/0.0.0 /dev/sda disk 257GB SCSI Disk
/0/3/0.0.0/1 /dev/sda1 volume 9748KiB data partition
/0/3/0.0.0/2 /dev/sda2 volume 3899MiB Linux swap volume
/0/3/0.0.0/3 /dev/sda3 volume 236GiB EXT4 volume
/0/4 scsi1 storage
/0/4/0.0.0 /dev/cdrom disk DVD reader
🔗lscpu
root@server:/# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
Stepping: 2
CPU MHz: 2596.988
BogoMIPS: 5193.97
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0,1
🔗lsblk
root@server:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 240G 0 disk
|-sda1 8:1 0 9.5M 0 part
|-sda2 8:2 0 3.8G 0 part [SWAP]
`-sda3 8:3 0 236.2G 0 part /
sr0 11:0 1 1024M 0 rom