System: # uname-a # View kernel/OS/CPU information # cat/etc/issue # cat/etc/redhat-release # View OS version # cat/proc/cpuinfo # View CPU information # hostname # view the metering system:
# Uname-a # View kernel/operating system/CPU information
# Cat/etc/issue
# Cat/etc/redhat-release # view the operating system version
# Cat/proc/cpuinfo # View CPU information
# 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 variables
Resource:
# 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
# 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
# Hdparm-I/dev/hda # View disk parameters (only applicable to IDE devices)
# Dmesg | grep IDE # view the IDE device detection status at startup
Network:
# 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 # Display process status in real time (for details in another article)
User:
# 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 tasks of the current user
Service:
# Chkconfig-list # list all System Services
# Chkconfig-list | grep on # list all started System Services
Program:
# Rpm-qa # View all installed software packages
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.