See some system commands on the Internet, put a note
# uname-a # View kernel/Os/cpu info # head-n 1/etc/issue # view OS version # Cat/proc/cpuinfo # View CPU Info # hostname # View Meter 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 usage # df-h # View each partition usage # du-sh < directory name > # View the size of the specified directory # grep memtotal/proc/meminfo
# View Total Memory # grep memfree/proc/meminfo # View Idle amount # Uptime # View System uptime, number of users, load # CAT/PROC/LOADAVG # View System load
Disks and partitions
# Mount | Column-t # View attached partition status # fdisk-l # View all partitions # swapon-s # View all swap partitions # hdparm-i/DEV/HDA # View disk parameters (IDE devices only) # DM ESG | grep IDE # view IDE Device detection status at startup
Internet
# ifconfig # View the properties of all network Interfaces # iptables-l # View firewall settings # route-n # View routing 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 process status
User
# w # View active user # ID < username > # View specified user information # Last # View user log in log # cut-d:-f1/etc/passwd # View system All users # cut-d: -f1/etc/group # View system All groups # Crontab-l # View Current user's scheduled tasks
Service
# chkconfig--list # List all system Services # Chkconfig--list | grep on # List all started system services
Program
# RPM-QA # View all installed Packages