2013年7月5日 星期五

linux view cpu version memory harddisk lan services

services is running
chkconfig --list



cpu
uname -r              ## view version e.g. 2.6.32-279.19.1.el6.x86_64
uname -m            ##  x86_64
cat /proc/cpuinfo ## e.g. processor    : 3; cpu MHz        : 1600.000
uptime

memory
cat /proc/meminfo  ## view memory  e.g. MemTotal:        3607604 kB
cat /proc/meminfo egrep --color 'mem/cache/Swapmoun'
vmstat 

harddisk
mount        ## view harddisk
iostat         ## Device: tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
du              ## disk usage show
df               ## show file system (df -ia)

lan network
netstat -tlunp
netstat -tl
netstat -tlnp

沒有留言:

張貼留言