View system hardware information in Centos

Source: Internet
Author: User
View system hardware information in Centos [root @ yongsen ~] # Uname-a # linux system information command for viewing kernel/operating system/CPU information [root @ yongsen ~] # Head-n1/etc/issue # view the operating system version, is the number 1 is not the letter L [root @ yong... Centos View system hardware information [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 the 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 the system load disk and partition [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 (applicable only 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 the 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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.