Centos hardware information viewing command

Source: Internet
Author: User
[Root @ yan-001 ~] Uname-a linux system information command for viewing kernel OS CPU information [root @ yan-001
[Root @ yan-001 ~] # Uname-a # view the kernel/operating system/CPU information of the linux system information command [root @ yan-001 ~] # Head-n 1/etc/issue # view the operating system version, is the number 1 is not the letter L [root @ yan-001 ~] # Cat/proc/cpuinfo # linux system information command to view CPU information [root @ yan-001 ~] # Hostname # View computer name linux system information command [root @ yan-001 ~] # Lspci-TV # List all PCI devices [root @ yan-001 ~] # Lsusb-TV # linux system information command for listing all USB devices [root @ yan-001 ~] # Lsmod # List loaded kernel modules [root @ yan-001 ~] # Env # View environment variable resources [root @ yan-001 ~] # Free-m # View memory usage and swap zone usage [root @ yan-001 ~] # Df-h # view the use of each partition [root @ yan-001 ~] # Du-sh # view the size of the specified directory [root @ yan-001 ~] # Grep MemTotal/proc/meminfo # view the total memory [root @ yan-001 ~] # Grep MemFree/proc/meminfo # view the amount of idle memory [root @ yan-001 ~] # Uptime # view the system running time, number of users, load [root @ yan-001 ~] # Cat/proc/loadavg # view the system load disk and partition [root @ yan-001 ~] # Mount | column-t # view the mounted partition status [root @ yan-001 ~] # Fdisk-l # View All partitions [root @ yan-001 ~] # Swapon-s # View all swap partitions [root @ yan-001 ~] # Hdparm-I/dev/hda # View disk parameters (only for IDE devices) [root @ yan-001 ~] # Dmesg | grep IDE # view the IDE device detection status at startup network [root @ yan-001 ~] # Ifconfig # view the properties of all network interfaces [root @ yan-001 ~] # Iptables-L # View firewall settings [root @ yan-001 ~] # Route-n # View route table [root @ yan-001 ~] # Netstat-lntp # View all listening ports [root @ yan-001 ~] # Netstat-antp # View all established connections [root @ yan-001 ~] # Netstat-s # View network statistics process [root @ yan-001 ~] # Ps-ef # View all processes [root @ yan-001 ~] # Top # real-time display process status user [root @ yan-001 ~] # W # View active users [root @ yan-001 ~] # Id # viewing the specified user information [root @ yan-001 ~] # Last # View user login logs [root @ yan-001 ~] # Cut-d:-f1/etc/passwd # View all users in the system [root @ yan-001 ~] # Cut-d:-f1/etc/group # View all groups of the system [root @ yan-001 ~] # Crontab-l # view the current user's scheduled task Service [root @ yan-001 ~] # Chkconfig? List # list all system services [root @ yan-001 ~] # Chkconfig? List | grep on # list all started System Service programs [root @ yan-001 ~] # Rpm-qa # View all the installed software packages [root @ yan-001 ~] # Cat/proc/cpuinfo # linux system command to view CPU-related parameters [root @ yan-001 ~] # Cat/proc/partitions # command for viewing linux hard disk and partition information [root @ yan-001 ~] # Cat/proc/meminfo # linux system command to view linux system memory information [root @ yan-001 ~] # Cat/proc/version # view the version, similar to uname-r [root @ yan-001 ~] # Cat/proc/ioports # view the device io port [root @ yan-001 ~] # Cat/proc/interrupts # View interrupt [root @ yan-001 ~] # Cat/proc/pci # View pci device information [root @ yan-001 ~] # Cat/proc/swaps # view information about all swap partitions


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.