View System Information in liunx, and view system information in liunx
--- Restore content start ---
System
# Uname-a # view kernel/operating system/CPU Information
# Head-n 1/etc/issue # 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
Resources
# Free-m # view memory usage and swap zone usage
# Df-h # view the usage of each partition
# Du-sh <Directory Name> # 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
User
# W # view active users
# Id <User Name> # view 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
--- Restore content end ---
System
# Uname-a # view kernel/operating system/CPU Information
# Head-n 1/etc/issue # 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
Resources
# Free-m # view memory usage and swap zone usage
# Df-h # view the usage of each partition
# Du-sh <Directory Name> # 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
User
# W # view active users
# Id <User Name> # view 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