关键字:df mount uname ifconfig netstat dmesg free top
df -ah 看磁盘利用率
[root@nm socket]# df -ah
Filesystem
Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1.6G 1.1G
410M 74% /
usbfs
0
0
0 -
/proc/bus/usb
/dev/hda1
99M 9.0M
85M 10% /boot
mount
看当前mount状态
[root@nm socket]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
cat
/proc/diskstats
看当前磁盘的状态
[root@vm macg]# cat /proc/diskstats
1 0 ram0 0 0
0 0 0 0 0 0 0 0 0
1 1 ram1 0 0
0 0 0 0 0 0 0 0 0
1 2 ram2 0 0
0 0 0 0 0 0 0 0 0
。。。
3 0 hda 12812
4809 186746 126266 2528 6413 71382 235278 0 125170 361551
3 1 hda1 692
1392 27
54
3 2 hda2
16792 184258 8916
71328
22 0 hdc 11
61 576 155 0 0 0 0 0 146
155
253
0 dm-0 16527 0 183370 166325 8916 0 71328 663415 0 124665
829737