linux view information

lscpu check cpu
lsblk check hard disk

1, check CPU information: cat /proc/cpuinfo
2, check board information: cat /proc/pci
3, check USB devices: cat /proc/bus/usb/devices
4, check PCI information: lspci (more intuitive than cat /proc/pci)
5. View memory information: cat /proc/meminfo
6. View keyboard and mouse: cat /proc/bus/input/devices
7. View system hard disk information and usage: fdisk & disk – l & df
8, use the hardware detection program kuduz to detect new hardware: service kudzu start ( or restart)
9, check the interrupt request (IRQ) of each device: cat /proc/interrupts
10, check the startup hardware detection information log: dmesg more /var/log/dmesguname -auptime
Several methods to view Linux version information:
1: uname -a
2: cat /proc/version
3: cat /etc/issue
4: lsb_release -a
5: cat /etc/redhat -release
6: rpm -q redhat-release
detailed lsb_release -a
Log in to the server and execute lsb_release -a to list all version information, for example: the code is as follows:
[hacder@NBCTC-14-15 ~]$ lsb_release -a
LSB Version: :core-3:1-amd64:core-3 :1-ia32:core-3:1-noarch:graphics-3:1-amd64:graphics-3:1-ia32:graphics-3:1-noarch
Distributor ID: CentOS
Description: CentOS release 5:3 (Final)
Release: 5:3
Codename: Final
This command applies to all linux, including Redhat, SuSE, Debian and other distributions.


lsscsi (check if it is ssd)
[0:2:0:0] disk SMC SMC2208 3.24 /dev/sda

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326533307&siteId=291194637