<?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>kill - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/kill/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Tue, 09 Nov 2010 11:46:31 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Using kill to display dd progress</title>
		<link>https://www.spheron1.uk/2010/11/09/using-kill-to-display-dd-progress/</link>
					<comments>https://www.spheron1.uk/2010/11/09/using-kill-to-display-dd-progress/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 11:46:31 +0000</pubDate>
				<category><![CDATA[Red Hat and CentOS]]></category>
		<category><![CDATA[/dev/null]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[nc]]></category>
		<category><![CDATA[netcat]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[process ID]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[progress bar]]></category>
		<category><![CDATA[SIGKILL]]></category>
		<category><![CDATA[signal]]></category>
		<category><![CDATA[SIGTERM]]></category>
		<category><![CDATA[Standard Error]]></category>
		<category><![CDATA[Standard Output]]></category>
		<category><![CDATA[STDERR]]></category>
		<category><![CDATA[STDOUT]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=316</guid>

					<description><![CDATA[<p>How long has that dd process been running for now? Is it even doing anything? How long is it going to take? If you want dd to give you a progress update, then find out the process ID (PID) and then send the USR1 signal to it with kill -USR1 And dd will then print out the same records in/out,&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2010/11/09/using-kill-to-display-dd-progress/">Using kill to display dd progress</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>How long has that dd process been running for now? Is it even doing anything? How long is it going to take?</p>
<p>If you want dd to give you a progress update, then find out the process ID (PID) and then send the USR1 signal to it with </p>
<blockquote><p>kill -USR1</p></blockquote>
<p>And dd will then print out the same records in/out, bytes copied, time taken and overall speed to STDERR as it would when it finishes.</p>
<p>It doesn&#8217;t matter if you are re-directing STDOUT (such as to pipe the data stream to another machine via netcat or even compressing it with gzip) but make sure that you aren&#8217;t sending STDERR anywhere such as /dev/null</p>
<p>Make sure you specify the &#8220;<em>-USR1</em>&#8221; argument to kill as you don&#8217;t want to send SIGTERM to dd by mistake!<br />
By default, <em>kill</em> will send SIGTERM (or SIGKILL if you use <em>kill -9</em>) to the specified process, but using &#8220;<em>-USR1</em>&#8221; you are telling kill to send a different signal, in this case one that causes dd to print the progress summary and so you aren&#8217;t actually going to &#8220;kill&#8221; the process.</p>
<p>You can even use have the progress refresh every few seconds with a command such as </p>
<blockquote><p>watch -n 10 kill -USR1 $PID</p></blockquote>
<p>Just replace $PID with the PID of the running dd process (or set the PID environment variable to the process ID).<br />
If dd was the last command you ran, then you can get the PID with the special $! variable, otherwise you&#8217;ll have to use ps to find the PID.</p><p>The post <a href="https://www.spheron1.uk/2010/11/09/using-kill-to-display-dd-progress/">Using kill to display dd progress</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2010/11/09/using-kill-to-display-dd-progress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/72 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-07-02 12:36:01 by W3 Total Cache
-->