System command:
#Uname-A # view the kernel/operating system/CPU information #Head-N1/Etc/Issue # view the operating system version #Cat/Proc/Cpuinfo # view CPU information #Hostname# Viewing computer names # lspci-TV # list all PCI devices # lsusb-TV # list all USB devices #Lsmod# List loaded kernel modules #Env# Viewing Environment Variables
Resource command:
#Free-M # view memory usage and swap zone usage #DF-H # view the usage of each partition #Du-Sh# Viewing the size of a specified directory #GrepMemtotal/proc/Meminfo # view the total memory size #GrepMemfree/proc/Meminfo # view the Amount of idle memory #Uptime# Viewing 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|GrepIde # view the IDE Device Detection Status at startup
Network:
#Ifconfig# Viewing the properties of all network interfaces # iptables-L # view firewall settings # route-N # view 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# Viewing active users #ID<User Name># Viewing specified user information #Last# Viewing user logon logs #Cut-D:-F1/etc/Passwd# Viewing 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|GrepOn # list all started system services
Program:
# Rpm-Qa # view all installed software packages
Address: http://www.iiwnet.com/php_linux/252.html