System
#查看内核/OS/CPU information uname-a #1/etc/issue #/proc/cpuinfo # View computer name hostname # list All PCI devices Lspci-tv # list all USB devices Lsusb-tv # list the loaded kernel modules lsmod # View environment Variables env
Resources
# view memory usage and swap usage free-m # View the usage of each partition df-h # View the size of the specified directory < directory name > # /proc/meminfo #/proc/meminfo # View System uptime, number of users, load uptime #/proc/loadavg
Disks and partitions
# view attached partition status Mount | column-t# View all partitions fdisk - l # View all swap partitions swapon-s #/dev/hda # View IDE device detection when booting DMESG | grep ide
Internet
# View the properties of all network Interfaces ifconfig# View firewall Settings iptables-l# View the Routing table route-n# View all listening ports netstat-lntp # View all established connections netstat-antp # View network statistics netstat-s
Process
# View All Processes Ps-ef # Real-time display process status top
User
# View Active user W #< user name > # View user log in log last#/etc/# View all system groups /etc/Group # View the current user's scheduled tasks crontab-l
Reference:
Http://www.it165.net/os/html/201303/4812.html
Linux View device Information command