Linux View hardware configuration commands

Source: Internet
Author: User

System Uname-a # View kernel/operating system/CPU Information Cat/etc/issue # view OS version Cat/proc/cpuinfo # view CPU Information hostname # view computer name LSPCI-TV # List all PCI devices LSUS B-TV # list all USB devices Lsmod # list loaded kernel Modules env # View environment variable Resource free-m # View memory usage and swap Usage df-h # View each partition usage du-sh < directory name > # View the size of the specified directory GRE P Memtotal/proc/meminfo # View total memory grep memfree/proc/meminfo # View idle amount Uptime # View system uptime, number of users, load Cat/proc/loadavg # View system load disk and Partition Mount | Column-t # View attached partition status Fdisk-l # View all Partitions www.2cto.comswapon-s # View all swap partitions hdparm-i/dev/hda # View disk parameters (IDE devices only) DMESG | grep IDE # View IDE device detection on startup Network Ifconfig # View the properties of all network Interfaces Iptables-l # View firewall Settings Route-n # View the routing table NETSTAT-LNTP # View all listening ports netstat-ant P # View all established Connections Netstat-s # View network statistics Process PS-EF # View all Processes top # live show process status User W # view active User ID < username > # View specified user information Last # View user logon log Cut -D:-F1/ETC/PASSWD # View System All users cut-d:-f1/etc/group # View system All Groups Crontab-l # View the current user's scheduled Tasks service Chkconfig--list # List all system services Chkcon Fig--list | grep on # Lists all startup system Services Rpm-qa # View all installed packages Common commands are organized as follows: View the serial number of the motherboard: Dmidecode | Grep-i ' Serial number ' view CPU information: Cat/proc/cpuinfo or DMEsg | Grep-i ' CPU ' or DMIDECODE-T processor view memory information: Cat/proc/meminfo [Free-m][vmstat] View board information: CAT/PROC/PCI view graphics card/sound card information: Lspci |grep -I ' VGA ' [DMESG | grep-i ' VGA '] view nic information: DMESG | Grep-i ' ETH ' [cat/etc/sysconfig/hwconf | grep-i eth][lspci | grep-i ' ETH '] View PCI information: LSPCI (more intuitive than CAT/PROC/PCI) view USB device: Cat /proc/bus/usb/devices View keyboard and mouse: Cat/proc/bus/input/devices View system hard disk information and usage: Fdisk & disk–l & DF View Interrupt Request (IRQ) for each device: Cat/proc/interrupts View System Architecture: UNAME-A


This article is from the "more efforts, the more Fortunate" blog, please be sure to keep this source http://berylzhang.blog.51cto.com/11721438/1878287

Linux View hardware configuration commands

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.