存档
文章标签 ‘kill’
09/11 11
5 条评论
2,049 次查看
top命令
今天在commandlinefu.com网站看到这么一篇文章check the status of ‘dd’ in progress,试了下,效果很好。
现在一个终端中开启一个dd进程
dd if=/dev/zero of=/data3/test bs=1k count=1024000
然后在另外一个终端中用while来反复执行killall命令
while killall -USR1 dd; do sleep 5; done
然后就能看到间隔5秒一次的输出结果了
292289+0 records in
292288+0 records out
541861+0 records in
541860+0 records out
760037+0 records in
760036+0 records out
886602+0 records in
886601+0 records out
1007881+0 records in
1007880+0 records out
1024000+0 records in
1024000+0 records out
292288+0 records out
541861+0 records in
541860+0 records out
760037+0 records in
760036+0 records out
886602+0 records in
886601+0 records out
1007881+0 records in
1007880+0 records out
1024000+0 records in
1024000+0 records out
所执行的killall命令循环会在dd命令执行结束之后退出。
阅读全文…
本文采用知识共享署名-非商业性使用-相同方式共享 3.0 Unported许可协议发布,转载请保留此信息
作者:马齿苋 | 链接:http://www.dbabeta.com/2009/dd-progress.html
作者:马齿苋 | 链接:http://www.dbabeta.com/2009/dd-progress.html
近期评论