Pages

Wednesday, August 8, 2012

Hardware Information In Linux


Some Hardware Information Commands available in Linux


dmesg
debugging messages from kernel

lshw > lshw.txt
makes txt file with list of hardware in /home/user

lspci
lists PCI devices, more elaborate with the -vv option

lspcidrake
same as above but only in Mandriva and PCLos

scanpci
to scan PCI buses and report information about the configuration space settings for each PCI device.

dmidecode
the computer's DMI SMBIOS  table in readable format

lsusb
lists USB devices, more elaborate with the -vv option

lshal
lists all devices with their properties, "lshal --monitor" monitors the changes

cat /proc/devices
list loaded hardware devices

cat /proc/dma
what dma channels are used

cat /proc/interrupts
what IRQs are used

cat /proc/ioports
what I/O are used

cat /proc/meminfo
info about memory use

cat /proc/modules
loaded kernel modules

cat /proc/cpuinfo
info about the processor

cat /proc/pci
plugged in PCI devices

cat /proc/scsi/scsi
SCSI devices

cat /proc/buddyinfo
check memory fragmentation


Happy learning , More To Come