Cheatsheet IGELOS Hardware
dmidecode
DMI (SMBIOS) table decoder
get serialnumber:
| dmidecode -s system-serial-number
|
get system manufacturer:
| dmidecode -s system-manufacturer
|
get product name:
| dmidecode -t system | grep 'Product Name' | cut -c 16-
|
lsblk
list block devices (file system)
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 25G 0 disk
├─sda1 8:1 0 10M 0 part
├─sda2 8:2 0 200M 0 part
├─sda3 8:3 0 200M 0 part
└─sda4 8:4 0 24.6G 0 part
...
igf248 61:248 0 15G 0 disk
└─248 253:5 0 15G 0 dm /custom
|
lsusb
list USB devices
| Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 005: ID 067b:23a3 Prolific Technology, Inc.
Bus 001 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 003: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 002: ID 8087:0025 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hu
|