Source: Findyou http://www.cnblogs.com/findyou/p/5548202.html
1. System
%UNAME-A # View kernel/Os/cpu information
%head-n 1/etc/issue # View OS version
%cat/proc/cpuinfo # Viewing CPU information
%hostname # View Computer name
%LSPCI-TV # List all PCI devices
%LSUSB-TV # list all USB devices
%lsmod # List of loaded kernel modules
%ENV # Viewing environment variable resources
%free-m # View memory usage and swap area usage
%df-h # Viewing the usage of each partition
%du-sh < directory name > # View the size of the specified directory
%grep Memtotal/proc/meminfo # View Total Memory
%grep Memfree/proc/meminfo # Viewing the amount of free memory
%uptime # View System uptime, number of users, load
%CAT/PROC/LOADAVG # Viewing system load
2. Disks and Partitions%mount | COLUMN-T # Viewing the status of a mounted partition
%fdisk-l # View all partitions
%swapon-s # View all swap partitions
%hdparm-i/dev/hda # View disk parameters (for IDE devices only)
%DMESG | grep IDE # View IDE device detection status at startup
3. Network
%ifconfig # View the properties of all network interfaces netstat-in
%ifconfig eth0 down # Disabled
%ifconfig eth0 Up # Enabled
%ifconfig eth0 Unplumb # stop NIC
%ifconfig eth0 Plumb # Enable NIC
%ifconfig eth0 192.168.0.1 netmask 255.255.255.0 # Configure network card address
%iptables-l # View firewall settings
%route-n # Viewing the routing table
%NETSTAT-LNTP # View All listening ports
%NETSTAT-ANTP # View all established connections
%netstat-s # Viewing network statistics
4. Process%PS-EF # View All Processes
%ps-ef|grep User # View ' users ' all processes
%top # Real-time display of process status
5. User%w # Viewing Active users
%id < user name > # view specified user information
%last # Viewing user logon logs
%cut-d:-f1/etc/passwd # View All users of the system
%cut-d:-f1/etc/group # View all system groups
%crontab-l # View Current user's scheduled tasks
6. Service%chkconfig--list # List all system services
%chkconfig--list | grep on # Lists all startup system services
%service vsftpd Start # vsftpd
%chkconfig--list | grep vsftpd # view VSFTPD Service status
%chkconfig vsftpd on # changed to VSFTPD service for default startup,%vi/etc/vsftpd/vsftpd.conf #修改 vsftpd settings
%service sshd Start # start SSH service
%chkconfig sshd on # set SSH service to start by default
7. Procedures
%RPM-QA # View all installed packages Red Hat package Manager (RPM, which functions like Add/Remove operations under Windows)
%RPM-QF < file name > # See which package the file belongs to (-QF: Display query information in the specified way)
8. View memory and CPU usage
%topas # IBM, SUN, Ibm-aix
%vmstat # SUN
%top # HP
%sar-d 10 100 # Observe system IO and CPU occupied commands, System IO
%sar-u 10 100 # Observe system IO and CPU occupied commands, CPU
%ONSTAT-D # Informix observation of Tempdbs occupancy
10. Shared Memory Operations%IPCS-M # Output information about shared memory
%IPCS-Q # Output information about information queues (message queue)
%ipcs-s # Output information about the "breaker" (semaphore)
%ipcrm-m 0x00000000 # Delete shared memory
Linux system command Collation (GO)