Linux View hardware information and commands for driving devices

Source: Internet
Author: User

Detecting new hardware with hardware detection program Kuduz: Service kudzu start (or restart) View CPU information: Cat/proc/cpuinfo View card information: CAT/PROC/PCI View PCI information: LSPCI (compared to CAT/ PROC/PCI more intuitive) View memory information: Cat/proc/meminfo View USB device: Cat/proc/bus/usb/devices View swap partition information: Cat/proc/swap View memory usage: Free view keyboard and mouse: Cat/proc/bus/input/devices viewing 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
View version of Linux: Cat/etc/issue or Cat/proc/version
View CPU information (model number): # Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
To see how many CPUs actually core: # Cat/proc/cpuinfo | grep Physical | Uniq-c
The current CPU is running in 32bit mode: # getconf Long_bit
The result is greater than 0, indicating support for 64bit calculations. LM refers to long mode, while LM is 64bit: # Cat/proc/cpuinfo | grep Flags | grep ' LM ' | Wc-l
View current operating system release information: # Cat/etc/issue | grep Linux
View machine Model: # Dmidecode | grep "Product Name"
View network card information: # DMESG | Grep-i ETH

View process start time, end time, run time: Ps-o stime,etime 28486 (SPID)

System

# uname-a               # View kernel/Os/cpu info # head-n 1/etc/issue   # view OS version # Cat/proc/cpuinfo      # View CPU Info # hostname               # View Meter Computer name # LSPCI-TV              # List all PCI devices # LSUSB-TV              # list all USB devices # Lsmod                  # list loaded kernel modules # env                    # View Environment variables

Resources

# 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 # grep memtotal/proc/meminfo< c13/># View Total Memory # grep memfree/proc/meminfo    # View Idle amount # Uptime                 # View System uptime, number of users, load # CAT/PROC/LOADAVG      # View System load

Disks and partitions

# Mount | Column-t      # View attached partition status # fdisk-l               # View all partitions # swapon-s              # View all swap partitions # hdparm-i/DEV/HDA     # View disk parameters (IDE devices only) # DM ESG | grep IDE       # view IDE Device detection status at startup

Internet

# ifconfig               # View the properties of all network Interfaces # iptables-l            # View firewall settings # route-n               # View routing table # NETSTAT-LNTP          # View all listening ports # NETSTAT-ANTP          # View all established connections # NETSTAT-S             # View Network statistics

Process

# ps-ef                 # View All Processes # Top                    # Real-time display process status

User

# w                      # View active user # ID < username >            # View specified user information # Last                   # View user log in log # cut-d:-f1/etc/passwd   # View system All users # cut-d: -f1/etc/group    # View system All groups # Crontab-l             # View Current user's scheduled tasks

Service

# chkconfig--list       # List all system Services # Chkconfig--list | grep    on # List all started system services

Program

# RPM-QA                # View all installed Packages

Original link: http://blog.csdn.net/ctthuangcheng/article/details/15812537

Linux View hardware information and commands for driving devices

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.