NOTE: some commands may not be avaiable for your platform after default installation as well as some commands may be distribution specific only.
1. What hardware is in my Linux box:
$ lspcior
# dmidecode
2. What hardware is using which module.
NOTE:Root permissions are needed to execute this command:# lspci -vor
# lspci -vvvor
# hardinfoor
$ hardinfo ( GUI )or
# lshwor
# lshw-gtk ( GUI )or
# hwinfo
3. BIOS
Retrieve BIOS information:# biosdecodeRetrieve BIOS vendor information:
# dmidecode -s bios-vendor
4. Retrieve information about your motherboard only:
# dmidecode --type baseboard
5. What USB devices are plugged in:
$ lsusb
6. Get USB disk device files
ls -la /dev/disk/by-id/usb-*
7. Hard drive model
hdparm -I /dev/sdx
8. Hard drive speed
hdparm -tT /dev/sdx
9. Graphic card information:
$ lspci | grep VGA
10. Check the size of the hard drive and partitions
Check the size of the hard drive and what hard drives are available in the system.This command will also list USB drives and sticks. You need a root permissions to execute this command:
# fdisk -l | grep GBCheck what partitions and file system is in use on my hard drives:
# fdisk -l
11. Locate CD/DVD-ROM device file:
$ wodim --devicesor
$ wodim --scanbus
12. Modules
What modules are currently loaded:$ lsmodget a information about any particular module:
$ /sbin/modinfo module_nameremove modules:
# modprobe --remove module_nameload a modules to the kernel:
# modprobe module_nameWhat hardware is using which module.
NOTE:Root permissions are needed to execute this command:
# lspci -vor
# lspci -vvv
13. Check for PCMCIA cards:
# lspcmcia
14. Processor type and socket
$ cat /proc/cpuinfoor
# dmidecode --type 4Is my processor using 32 or 64 bit instruction set:
$ cat /proc/cpuinfo | grep flags | grep lmif you get some output you have 64 bit if no output is presented you are using 32 or even 16 bit CPU. NOTE: grep command looks for lm flag.
Retrieve CPU / Processor socket type:
x86info -a 2> /dev/null | grep Connector | uniq
15. RAM
How much RAM is installed in my Linux and how much of it is in use ( mega bytes ).It will also include swap memory:
$ free -mor
$ topor
$ cat /proc/meminfoDetect number of RAM slots used, speed, and size:
# lshw -C memory -shortor
# dmidecode -t 17
16. Sound Card
Check sound card settings. This command will reveal whether your sound card is installed and what modules are in use:$ cat /dev/sndstat
17. Available wireless cards:
$ iwconfig
18. What speed is set to FANs:
$ cat /proc/acpi/ibm/fan
19. Battery
Get a battery information on your laptop:$ powersave -b
20. List Plug and Play BIOS device
# lspnp
REFERENCE
http://www.linuxconfig.org/getting-know-a-hardware-on-your-linux-box