Linux Hardware Detection

[codesyntax lang=”bash”]

# Linux Version
$ cat /proc/version

# System Core
$ uname -a

# CPU Type
$ cat /proc/cpuinfo | grep "model name" | head -1

# Base Board Information
$ dmidecode | more

# Total Memory
$ cat /proc/meminfo | grep "MemTotal"

# Disk
$ sudo fdisk -l

# VGA Information
$ lspci | grep VGA

# Sound Card
$ lspci | grep -i audio

# NIC Information
$ dmesg | grep -i eth

# Interrupts Information
$ cat /proc/interrupts - 中断 

# I/O Information
$ cat /proc/ioports

# Partitions Information
$ cat /proc/partitions

# Swap Information
$ cat /proc/swaps

# Processes and CPU Information
$ top

# Virtual Memory
$ vmstat

[/codesyntax]

Posted in Linux | Tagged | Leave a comment