Linux Common View Hardware Device Information command encyclopedia (worth Collection) _linux

Source: Internet
Author: User
Tags memory usage dmesg
# uname-a #        View kernel/Os/cpu information
# head-n 1/etc/issue  # view OS version
# cat/proc/cpuinfo   # View CPU Information
# HOS Tname        # View 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 area usage
# df-h         # View each partition usage
# du-sh < directory name >    # View the size of the specified directory
# grep Memto Tal/proc/meminfo  # View total Ram
# grep memfree/proc/meminfo  # View idle memory
# uptime         # View system run time, number of users, load c30/># 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)
# DMESG | grep IDE    # View IDE device detection 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 Mouth
# netstat-antp #     View all established Connections
# netstat-s       # View Network statistics

Process

# ps-ef #         View all Processes
# top          # Real-time display of process status

User

# w           # View active user
# ID < username >      # View specified user Information
# last          # View user login log
# cut-d:-f1/etc/passwd  # View all users of the system
# cut-d:-f1/etc/group  # View all Groups
of the system # CRONTAB-L       # View scheduled tasks for the current user

Service

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

Program

# RPM-QA        # View all installed Packages

Common commands are sorted as follows:

To view the motherboard serial number: Dmidecode | Grep-i ' Serial number '

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

Viewing CPU information: Cat/proc/cpuinfo [DMESG | grep-i ' CPU '][DMIDECODE-T processor]

Viewing memory information: Cat/proc/meminfo [Free-m][vmstat]

View board Information: CAT/PROC/PCI

View video card/sound card information: Lspci |grep-i ' VGA ' [DMESG | grep-i ' VGA ']

View network card information: DMESG | Grep-i ' ETH ' [cat/etc/sysconfig/hwconf | grep-i eth][lspci | grep-i ' ETH ']

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

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

View keyboard and mouse: Cat/proc/bus/input/devices

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

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

View System Architecture: UNAME-A

To view and start the system's 32-bit or 64-bit kernel mode: isalist–v [isainfo–v][isainfo–b]

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

Determine the current display refresh rate:/usr/sbin/ffbconfig–rev \?

View System configuration:/usr/platform/sun4u/sbin/prtdiag–v

To view patches that have been applied in the current system: showrev–p

Displays the current run level: WHO–RH

To view the current BIND version information: Nslookup–class=chaos–q=txt Version.bind

DMESG | More View hardware information
LSPCI display peripheral information, such as USB, NIC and other information
Lsnod to view loaded drivers
Lshw
Psrinfo-v view the type and speed of the current processor (frequency)
Prtconf-v Print the current OBP version number
Iostat–e View Hard disk physical information (vendor, RPM, Capacity)
prtvtoc/dev/rdsk/c0t0d0s view disk geometry parameters and partition information
Df–f Ufs–o I shows the number of i-node that have been used and not used
Isalist–v

For files in '/proc ', you can use the File View command to browse their contents and include system-specific information in the file:

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

Note: proc–process information Pseudo-filesystem Process information Camouflage file system

The above is a small set to introduce the Linux commonly used to see Hardware equipment information commands Daquan, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.