<?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>Slashzerø &#187; Linux Commands</title>
	<atom:link href="http://www.slashzero.com/tag/linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slashzero.com</link>
	<description>Random and Useless Thoughts on Everything</description>
	<lastBuildDate>Wed, 31 Mar 2010 20:46:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux commands I never knew existed: Pipe Viewer</title>
		<link>http://www.slashzero.com/2008/07/linux-commands-i-never-knew-existed-pipe-viewer/</link>
		<comments>http://www.slashzero.com/2008/07/linux-commands-i-never-knew-existed-pipe-viewer/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 17:33:22 +0000</pubDate>
		<dc:creator>abx21</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>

		<guid isPermaLink="false">http://blog.slashzero.com/?p=37</guid>
		<description><![CDATA[I have been using linux since about 1995, and it still surprises me how creative the people who contribute code and work on projects are.   The other day I had to image a bunch of machines, they all needed to be 100% identical, so I figured I would just use &#8220;dd&#8221; and send to output <a href='http://www.slashzero.com/2008/07/linux-commands-i-never-knew-existed-pipe-viewer/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I have been using linux since about 1995, and it still surprises me how creative the people who contribute code and work on projects are.   The other day I had to image a bunch of machines, they all needed to be 100% identical, so I figured I would just use &#8220;dd&#8221; and send to output over to each slave machine using netcat.  For anyone who has ever done this before, it can be a bit hard to figure out how fast data is being sent over to the system being imaged.  This is where <a href="http://www.ivarch.com/programs/pv.shtml">Pipe Viewer</a> came in handy.  Quite simply this app reports the bitrate that the data is sent over a unix pipe.  Brilliant.</p>
<p>It is not installed by default in debian, so the following will install the app.</p>
<p><code><br />
user@slashzero-desktop:~$ sudo aptitude install pv<br />
</code></p>
<p>Once installed, passing the &#8220;&#8211;help&#8221; parameter will list the basic options.</p>
<p><code><br />
user@slashzero-desktop:~$ pv --help<br />
Usage: pv [OPTION] [FILE]...<br />
Concatenate FILE(s), or standard input, to standard output,<br />
with monitoring.<br />
-p, --progress           show progress bar<br />
-t, --timer              show elapsed time<br />
-e, --eta                show estimated time of arrival (completion)<br />
-r, --rate               show data transfer rate counter<br />
-b, --bytes              show number of bytes transferred<br />
-f, --force              output even if standard error is not a terminal<br />
-n, --numeric            output percentages, not visual information<br />
-q, --quiet              do not output any transfer information at all<br />
-c, --cursor             use cursor positioning escape sequences<br />
-W, --wait               display nothing until first byte transferred<br />
-s, --size SIZE          set estimated data size to SIZE bytes<br />
-l, --line-mode          count lines instead of bytes<br />
-i, --interval SEC       update every SEC seconds<br />
-w, --width WIDTH        assume terminal is WIDTH characters wide<br />
-H, --height HEIGHT      assume terminal is HEIGHT rows high<br />
-N, --name NAME          prefix visual information with NAME<br />
-L, --rate-limit RATE    limit transfer to RATE bytes per second<br />
-B, --buffer-size BYTES  use a buffer size of BYTES<br />
-R, --remote PID         update settings of process PID<br />
-h, --help               show this help and exit<br />
-V, --version            show version information and exit<br />
Please report any bugs to Andrew Wood .<br />
</code></p>
<p>And here is a quick example, this command tar&#8217;s up a directory and send the output to gzip, showing a rate of 223MB/s:</p>
<p><code><br />
user@slashzero-desktop:/home$ tar zcf - user | pv /bin/gzip &gt; /tmp/backup.tar.gz<br />
59.7kB 0:00:00 [ 223MB/s] [===========================================&gt;] 100%<br />
</code></p>
<p>Incredibly useful stuff.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.slashzero.com%2F2008%2F07%2Flinux-commands-i-never-knew-existed-pipe-viewer%2F&amp;linkname=Linux%20commands%20I%20never%20knew%20existed%3A%20Pipe%20Viewer"><img src="http://www.slashzero.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.slashzero.com/2008/07/linux-commands-i-never-knew-existed-pipe-viewer/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
