Add the following linux command to view system information:

Source: Internet
Author: User
# Uname-a # View kernel/OS/CPU information # head-n1/etc/issue # View OS version # hostname # View Computer Name # lspci-TV # List all PCI devices # lsusb-TV # List all USB devices # lsmod #...

# Uname-a # View kernel/operating system/CPU information
# Head-n 1/etc/issue # view the operating system version
# Hostname # view the computer name
# Lspci-TV # List all PCI devices
# Lsusb-TV # List all USB devices
# Lsmod # List loaded kernel modules
# Env # View environment variable resources
# Free-m # View memory usage and swap zone usage
# Df-h # view the usage of each partition
# Du-sh <目录名> # View the size of a specified directory
# Grep MemTotal/proc/meminfo # View total memory
# Grep MemFree/proc/meminfo # view the amount of idle memory
# Uptime # View system running time, number of users, and load
# Vmstat # View detailed system running information
# Cat/proc/loadavg # View system load disks and partitions
# Mount | column-t # view the status of the mounted partition
# Fdisk-l # View all partitions
# Swapon-s # View all swap partitions
# Dmesg | grep IDE # view the network of the IDE device detection status at startup
# Ifconfig # view the attributes of all network interfaces
# Iptables-L # View firewall settings
# Route-n # view the route 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 of process status users
# W # View active users
# Id <用户名> # Viewing specified user information
# Last # View user logon logs
# Cut-d:-f1/etc/passwd # View all users in the system
# Cut-d:-f1/etc/group # View all groups in the system
# Crontab-l # view the scheduled task service of the current user
# Chkconfig-list # list all System Services
# Chkconfig-list | grep on # list all started System service programs
# Rpm-qa # View all installed software packages
Cat/proc/cpuinfo view CPU parameters
Cat/proc/partitions view hard disks and partitions
Cat/proc/meminfo view memory information
Cat/proc/ioports view the device's io port
Cat/proc/interrupts view interrupt
Cat/proc/pci view pci device information
Cat/proc/swaps view information about all swap partitions

The author's "txgc1009 column"

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.