<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; dd</title>
	<atom:link href="http://www.dbainfo.net/tag/dd/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>显示dd命令的进度</title>
		<link>https://www.dbainfo.net/show-progress-of-dd-command.htm</link>
		<comments>https://www.dbainfo.net/show-progress-of-dd-command.htm#comments</comments>
		<pubDate>Wed, 02 Nov 2011 14:26:20 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Unix&Linux]]></category>
		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=1240</guid>
		<description><![CDATA[linux下显示dd命令的进度： dd if=/dev/zero of=/tmp/zero.img bs=10M count=100000 想要查看上面的dd命令的执行进度，可以使用下面几种方法： 比如：每5秒输出dd的进度 方法一： watch -n 5 pkill -USR1 ^dd$ 方法二： watch -n 5 killall -USR1 dd 方法三： while killall -USR1 dd; do sleep 5; done 方法四： while (ps auxww &#124;grep &#34; dd &#34; &#124;grep -v grep &#124;awk &#39;{print $2}&#39; &#124;while read pid; do kill -USR1 $pid; done) ; do [...]]]></description>
			<content:encoded><![CDATA[<p>linux下显示dd命令的进度：</p>
<pre>dd if=/dev/zero of=/tmp/zero.img bs=10M count=100000
</pre>
<p>想要查看上面的dd命令的执行进度，可以使用下面几种方法：</p>
<p>比如：每5秒输出dd的进度</p>
<p><strong>方法一：<br />
	</strong></p>
<pre>watch -n 5 pkill -USR1 ^dd$</pre>
<p><strong>方法二：</strong></p>
<pre>watch -n 5 killall -USR1 dd</pre>
<p><strong>方法三：</strong></p>
<pre>while killall -USR1 dd; do sleep 5; done</pre>
<p><strong>方法四：</strong></p>
<pre>while (ps auxww |grep &quot; dd &quot; |grep -v grep |awk &#39;{print $2}&#39; |while read pid; do kill -USR1 $pid; done) ; do sleep 5; done</pre>
<p>上述四种方法中使用三个命令：pkill、killall、kill向dd命令发送SIGUSR1信息，dd命令进程接收到信号之后就打印出自己当前的进度。</p>
<hr />
<p>参考：<a href="http://www.dbabeta.com/" target="_blank">贝塔中的DBA</a> - <a href="http://www.dbabeta.com/2009/dd-progress.html" target="_blank">查看dd命令的执行进度</a></p>
<p><a href="http://www.commandlinefu.com/" target="_blank">commandlinefu.com</a> -&nbsp; <a href="http://www.commandlinefu.com/commands/view/4011/check-the-status-of-dd-in-progress" target="_blank">check the status of &#39;dd&#39; in progress</a></p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/show-progress-of-dd-command.htm">https://www.dbainfo.net/show-progress-of-dd-command.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/show-progress-of-dd-command.htm">显示dd命令的进度</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li>2013-09-08 -- <a href="https://www.dbainfo.net/get-current-running-sql.htm" title="查看ASE v15正在执行的SQL语句内容">查看ASE v15正在执行的SQL语句内容</a> (0)</li><li>2010-12-19 -- <a href="https://www.dbainfo.net/imgrate-ase-database-referencial-table-scripts-execute-twice.htm" title="迁移ASE数据库的表之间存在引用时脚本执行情况">迁移ASE数据库的表之间存在引用时脚本执行情况</a> (0)</li><li>2020-08-02 -- <a href="https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm" title="Sybase ASE 16.0数据库无法连接报错There is a protocol packet error. An illegal length was received">Sybase ASE 16.0数据库无法连接报错There is a protocol packet error. An illegal length was received</a> (0)</li><li>2010-08-16 -- <a href="https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm" title="修复virtualbox中丢失xml文件导致不能启动虚拟机的问题">修复virtualbox中丢失xml文件导致不能启动虚拟机的问题</a> (0)</li><li>2011-01-24 -- <a href="https://www.dbainfo.net/ase_db_extend_increase_stack_size_.htm" title="添加自动扩展时调整stack size的大小">添加自动扩展时调整stack size的大小</a> (0)</li><li>2010-06-01 -- <a href="https://www.dbainfo.net/sybase-ase-isql-login-failed-feedbacks.htm" title="Sybase ASE中用isql连接数据库失败时的错误信息所反馈的信息">Sybase ASE中用isql连接数据库失败时的错误信息所反馈的信息</a> (0)</li><li>2010-12-22 -- <a href="https://www.dbainfo.net/cross-platform-datafile-linux-windows.htm" title="跨平台数据库的数据设备文件迁移linux > windows">跨平台数据库的数据设备文件迁移linux > windows</a> (0)</li><li>2011-01-24 -- <a href="https://www.dbainfo.net/add_user_database_by_disk_init_create_database_comman.htm" title="用命令行创建用户数据库">用命令行创建用户数据库</a> (1)</li><li>2011-09-26 -- <a href="https://www.dbainfo.net/install-sybase-ase15-0-2-on-ubuntu.htm" title="在Ubuntu7.04上安装sybase ASE 15.0.2">在Ubuntu7.04上安装sybase ASE 15.0.2</a> (0)</li><li>2010-02-05 -- <a href="https://www.dbainfo.net/display-sql-results-page-by-page-3ways.htm" title="三种SQL分页法[转帖]">三种SQL分页法[转帖]</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/show-progress-of-dd-command.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
