View PC Hardware Device Properties command under CentOS

Source: Internet
Author: User
Tags dmesg

How to view computer hardware device properties under Linux

# uname-a # View kernel/Os/cpu information

# head-n 1/etc/issue # view OS version

# cat/proc/cpuinfo # View CPU Information

# hostname # View computer name

# LSPCI-TV # list all PCI devices

# LSUSB-TV # list all USB devices

# lsmod # List of loaded kernel modules

# env # View environment variable resources

# free-m # View memory usage and swap area usage

# df-h # View the usage of each partition

# du-sh # View the size of the specified directory

# grep Memtotal/proc/meminfo # View Total Memory

# grep Memfree/proc/meminfo # View the amount of free memory

# uptime # View System uptime, number of users, load

# cat/proc/loadavg # View system load disks and partitions

# Mount | COLUMN-T # Viewing the status of a mounted partition

# fdisk-l # View all partitions

# swapon-s # View all swap partitions

# hdparm-i/dev/hda # View disk parameters (for IDE devices only)

# DMESG | grep IDE # View IDE device detection network at startup

# 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-ANTP # View all established connections

# netstat-s # View the network statistics process

# ps-ef # View All Processes

# top # Real-time display of process status users

# w # View active Users

# ID # view specified user information

# last # View user log in log

# cut-d:-f1/etc/passwd # View All users of the system

# cut-d:-f1/etc/group # View all system groups

# crontab-l # View the current user's scheduled tasks service

# chkconfig–list # List all system services

# Chkconfig–list | grep on # Lists all started system services programs

# rpm-qa # View all installed Packages

Cat/proc/cpuinfo: View CPU-related parameters

Cat/proc/partitions: Viewing hard disks and partitions

Cat/proc/meminfo: Viewing memory information

Cat/proc/version: View version, similar to Uname-r

Cat/proc/ioports: Viewing the device IO port

Cat/proc/interrupts: Viewing interrupts

CAT/PROC/PCI: Viewing information for PCI devices

Cat/proc/swaps: View information for all swap partitions

How to know what the system has a hardware device, there are several ways:

Way One:

Using the Lsdev command, you can display the devices and their characteristics in the system.

Example: Lsdev-c

But the general system may not have this command, such as I installed Fedora above the command.

Method Two:

Displays the/proc/dev file, which records some of the system's hardware information,

Example: Cat/proc/dev

Method Three:

If you are looking for a specific USB device, you can use the LSUSB command to list all USB devices.

If you are looking for a specific PCMCIA device, you can use the Lspcmcia command to list all PCMCIA devices.

If you are looking for a specific PCI device, you can use the LSPCI command to list all the PCM devices.

Linux View hardware information and drive equipment

Detecting new hardware with hardware detection program kudzu: Service kudzu start (or restart)

View CPU Information: Cat/proc/cpuinfo

View card information: CAT/PROC/PCI

View PCI information: LSPCI (more intuitive than CAT/PROC/PCI)

View memory Information: Cat/proc/meminfo

View USB devices: Cat/proc/bus/usb/devices

Viewing the keyboard and mouse: Cat/proc/bus/input/devices

View system hard disk information and usage: Fdisk & disk-l & DF

To view interrupt requests (IRQ) for each device: cat/proc/interrupts

View System Architecture: UNAME-A

To develop a driver in a Linux environment, the first thing to do is to detect new hardware and then develop the driver.

Common commands are organized as follows:

Detecting new hardware with hardware detection program kudzu: Service kudzu start (or restart)

View CPU Information: Cat/proc/cpuinfo

View card information: CAT/PROC/PCI

View PCI information: LSPCI (more intuitive than CAT/PROC/PCI)

View memory Information: Cat/proc/meminfo

View USB devices: Cat/proc/bus/usb/devices

Viewing the keyboard and mouse: Cat/proc/bus/input/devices

View system hard disk information and usage: Fdisk & disk-l & DF

To view interrupt requests (IRQ) for each device: cat/proc/interrupts

View System Architecture: UNAME-A

Dmidecode viewing hardware information, including BIOS, CPU, memory, etc.

DMESG | More View hardware information

For files in "/proc", you can use the File View command to browse its contents, and the file contains system-specific information:

Cpuinfo Host CPU Information

DMA Host DMA Channel information

Filesystems File System Information

Interrupts host interrupt Information

Ioprots host I/O port number information

Meninfo Host Memory Information

Version Linux memory release information

displaying PCI device details

At present, many common hardware are PCI (peripheral Component interconnect) devices, such as sound card, network card, USB controller, and so on, slightly older graphics cards are generally PCI devices. It is possible to view the details of a PCI device due to the driver installation or other needs. The LSPCI command makes it easy to achieve this.

The simplest way to use LSPCI is to:

Lspci It shows the information that is usually most useful to us.

If you want more detailed information, you can:

LSPCI-VLSPCI-VVLSPCI-VVV If some of the items are not normally translated by adults can understand the text, can

Update-pciids Use this feature to confirm that you are connected to the Internet and can access the foreign network.


View PC Hardware Device Properties command under CentOS

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.