Show Menu
Cheatography

Linux Hardware Commands Cheat Sheet by

Linux commands for hardware and device management

CPU & Memory

Command
Purpose
lscpu
CPU inform­ation
nproc
Number of CPUs
free -h
Memory usage
vmstat
Virtual memory statistics
uptime
Load average

Device Files

/dev/sda
/dev/n­vme0n1
/dev/tty
/dev/null
/dev/r­andom
/dev/u­random
 

Storage Devices

Command
Purpose
lsblk
List block devices
blkid
UUIDs and filesystem types
fdisk -l
List partitions
parted -l
List partition tables
df -h
Disk usage
du -sh
Directory size

initramfs

dracut
update­-in­itramfs
lsinitrd
mkinitcpio
 

Hardware Detection

Command
Purpose
lspci
PCI devices
lsusb
USB devices
lshw
Hardware inventory
dmidecode
BIOS/DMI inform­ation
hwinfo
Hardware details (if installed)
dmesg
Kernel hardware mesages

udev

udevadm info
udevadm monitor
udevadm trigger
udevadm control
 

Kernel Modules

Command
Purpose
lsmod
List loaded modules
modinfo
Module inform­ation
modprobe
Load/u­nload modules with depend­encies
insmod
Insert module
rmmod
Remove module
depmod
Build module dependency database
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Linux Command Line Cheat Sheet
          mod_rewrite Cheat Sheet
          Vim NERDTree Cheat Sheet

          More Cheat Sheets by hlhlhl

          Linux File and Directory Commands Cheat Sheet
          Managing Processes and Jobs in Linux Cheat Sheet
           
          Advertisement