procps系列玩具还是很棒的。
# dpkg -L procps | grep '/usr/bin'
/usr/bin
/usr/bin/uptime
/usr/bin/tload
/usr/bin/free
/usr/bin/top
/usr/bin/vmstat
/usr/bin/watch
/usr/bin/skill
/usr/bin/pmap
/usr/bin/pgrep
/usr/bin/slabtop
/usr/bin/pwdx
/usr/bin/w.procps
/usr/bin/snice
/usr/bin/pkill
watch可用来监控目录的内容变化:
# watch -d ls -l
Every 2.0s: ls -l Sat Feb 23 19:19:07 2008
total 32860
-rw-r--r-- 1 root root 4702017 2008-02-23 19:04 10.mp3
-rw-r--r-- 1 root root 4497367 2008-02-23 19:04 200611915462392.mp3
-rw-r--r-- 1 root root 4365656 2005-01-17 00:00 7.rm
-rw-r--r-- 1 root root 7417270 2007-09-18 14:06 aq.mp3
阅读(1331) | 评论(0) | 转发(0) |