View system hardware information in Centos [root @ yongsen ~] # Uname-a # linux system information command for viewing kernel/operating system/CPU information [root @ yongsen ~] # Head-n 1/etc/issue # view the operating system version. The value is 1, not the letter L [root @ yongsen ~]. # Cat/proc/cpuinfo # linux system information command for viewing CPU information [root @ yongsen ~] # Hostname # linux system information command for viewing computer names [root @ yongsen ~] # Lspci-TV # list all PCI devices [root @ yongsen ~] # Lsusb-TV # linux system information command for listing all USB devices [root @ yongsen ~] # Lsmod # list the loaded kernel modules [root @ yongsen ~] # Env # view environment variable resources [root @ yongsen ~] # Free-m # view memory usage and swap zone usage [root @ yongsen ~] # Df-h # view the usage of each partition [root @ yongsen ~] # Du-sh # view the size of a specified directory [root @ yongsen ~] # Grep MemTotal/proc/meminfo # view total memory [root @ yongsen ~] # Grep MemFree/proc/meminfo # view the amount of free memory [root @ yongsen ~] # Uptime # view the system running time, number of users, and load [root @ yongsen ~] # Cat/proc/loadavg # view system load disks and partitions [root @ yongsen ~] # Mount | column-t # view the status of the mounted partition [root @ yongsen ~] # Fdisk-l # view all partitions [root @ yongsen ~] # Swapon-s # view all swap partitions [root @ yongsen ~] # Hdparm-I/dev/hda # view disk parameters (only applicable to IDE devices) [root @ yongsen ~] # Dmesg | grep IDE # view the IDE Device Detection Status at startup. Network [root @ yongsen ~] # Ifconfig # view the attributes of all network interfaces [root @ yongsen ~] # Iptables-L # view firewall settings [root @ yongsen ~] # Route-n # view the route table [root @ yongsen ~] # Netstat-lntp # view all listening ports [root @ yongsen ~] # Netstat-antp # view all established connections [root @ yongsen ~] # Netstat-s # process for viewing network statistics [root @ yongsen ~] # Ps-ef # view all processes [root @ yongsen ~] # Top # users who display Process status in real time [root @ yongsen ~] # W # view active users [root @ yongsen ~] # Id # view specified user information [root @ yongsen ~] # Last # view User Logon logs [root @ yongsen ~] # Cut-d:-f1/etc/passwd # view all users in the system [root @ yongsen ~] # Cut-d:-f1/etc/group # view all system groups [root @ yongsen ~] # Crontab-l # view the scheduled Task Service of the current user [root @ yongsen ~] # Chkconfig-list # list all system services [root @ yongsen ~] # Chkconfig-list | grep on # list all started system service programs [root @ yongsen ~] # Rpm-qa # view all installed software packages [root @ yongsen ~] # Cat/proc/cpuinfo # linux system command for viewing CPU-related parameters [root @ yongsen ~] # Cat/proc/partitions # command for viewing linux hard disk and partition information [root @ yongsen ~] # Cat/proc/meminfo # linux system command for viewing linux system memory information [root @ yongsen ~] # Cat/proc/version # view the version, similar to uname-r [root @ yongsen ~] # Cat/proc/ioports # view the device's io port [root @ yongsen ~] # Cat/proc/interrupts # view the interrupt [root @ yongsen ~] # Cat/proc/pci # view pci device information [root @ yongsen ~] # Cat/proc/swaps # view information about all swap partitions. If the preceding command does not exist, then on the RHEL6 system, you can use a command like yum provides "*/lspci" to query and install the corresponding software package.