<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: tar &#8212; how to create and extract tar.gz and tar.bz2 archives</title>
	<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/</link>
	<description>Diary of my Linux journeys. Everything Linux by Kamil Wójcicki</description>
	<pubDate>Thu, 09 Feb 2012 22:37:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Vamsi</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1557</link>
		<author>Vamsi</author>
		<pubDate>Fri, 21 Oct 2011 15:45:54 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1557</guid>
		<description>Awesome ! 
very good coverage of the tar command..</description>
		<content:encoded><![CDATA[<p>Awesome !<br />
very good coverage of the tar command..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Baker</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1522</link>
		<author>George Baker</author>
		<pubDate>Tue, 05 Jul 2011 14:57:13 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1522</guid>
		<description>While I was backing up a partition on a system I got the following message:

outbound2.img: file changed as we read it

my question is did it stop reading the file at that point or did it continue reading the rest of the file, or did it start over on that file? And finally, how did it know that the file changed?

Thanks</description>
		<content:encoded><![CDATA[<p>While I was backing up a partition on a system I got the following message:</p>
<p>outbound2.img: file changed as we read it</p>
<p>my question is did it stop reading the file at that point or did it continue reading the rest of the file, or did it start over on that file? And finally, how did it know that the file changed?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinny</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1443</link>
		<author>Vinny</author>
		<pubDate>Mon, 29 Nov 2010 21:23:47 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1443</guid>
		<description>Very useful!
Thanks and cheers from Brazil!</description>
		<content:encoded><![CDATA[<p>Very useful!<br />
Thanks and cheers from Brazil!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spacerat</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1435</link>
		<author>spacerat</author>
		<pubDate>Tue, 02 Nov 2010 13:15:23 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1435</guid>
		<description>well it's because f needs to be followed by a filename, so it has to stay at the end. If it works both ways the your tar has probably been patched.</description>
		<content:encoded><![CDATA[<p>well it&#039;s because f needs to be followed by a filename, so it has to stay at the end. If it works both ways the your tar has probably been patched.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anurag</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1169</link>
		<author>anurag</author>
		<pubDate>Fri, 06 Aug 2010 05:17:28 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1169</guid>
		<description>thnks for the beautiful representation of the info.</description>
		<content:encoded><![CDATA[<p>thnks for the beautiful representation of the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1119</link>
		<author>Kamil</author>
		<pubDate>Mon, 17 May 2010 09:39:14 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1119</guid>
		<description>hi sindikat, I am using GNU tar 1.20 and both 'tar xjf foo.tar.bz2' and 'tar xfj foo.tar.bz2' work fine for me.</description>
		<content:encoded><![CDATA[<p>hi sindikat, I am using GNU tar 1.20 and both &#039;tar xjf foo.tar.bz2&#039; and &#039;tar xfj foo.tar.bz2&#039; work fine for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sindikat</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1043</link>
		<author>sindikat</author>
		<pubDate>Wed, 28 Apr 2010 03:41:09 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-1043</guid>
		<description>&#62;

when i try to run

$ tar xfj foo.tar.bz2

instead of

$ tar xjf foo.tar.bz2

it throws an error:

tar: j: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

I'm using GNU tar 1.23</description>
		<content:encoded><![CDATA[<p>&gt;</p>
<p>when i try to run</p>
<p>$ tar xfj foo.tar.bz2</p>
<p>instead of</p>
<p>$ tar xjf foo.tar.bz2</p>
<p>it throws an error:</p>
<p>tar: j: Cannot open: No such file or directory<br />
tar: Error is not recoverable: exiting now</p>
<p>I&#039;m using GNU tar 1.23</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: majkel d?ekson</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-837</link>
		<author>majkel d?ekson</author>
		<pubDate>Sat, 10 Apr 2010 17:07:47 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-837</guid>
		<description>Super, dzieki Kamil!</description>
		<content:encoded><![CDATA[<p>Super, dzieki Kamil!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-686</link>
		<author>Kamil</author>
		<pubDate>Tue, 10 Mar 2009 05:38:28 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-686</guid>
		<description>Fixed. Thanks Zim.</description>
		<content:encoded><![CDATA[<p>Fixed. Thanks Zim.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zim</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-614</link>
		<author>Zim</author>
		<pubDate>Sun, 22 Feb 2009 23:51:27 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-614</guid>
		<description>"To further encode it using gzip compression the j option is also added"

I believe that should be the "z" option</description>
		<content:encoded><![CDATA[<p>&#034;To further encode it using gzip compression the j option is also added&#034;</p>
<p>I believe that should be the &#034;z&#034; option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xeleema</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-481</link>
		<author>Xeleema</author>
		<pubDate>Mon, 08 Sep 2008 17:08:46 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-481</guid>
		<description>Also, for those of us who find ourselves without a GNU version of tar present;

compress (passthru with bzip2 or gzip )
  tar cvf - dirname &#124; bzip2 -9 - &#62; dirname.tar.bz2

uncompress
   bzip2 -d </description>
		<content:encoded><![CDATA[<p>Also, for those of us who find ourselves without a GNU version of tar present;</p>
<p>compress (passthru with bzip2 or gzip )<br />
  tar cvf - dirname | bzip2 -9 - &gt; dirname.tar.bz2</p>
<p>uncompress<br />
   bzip2 -d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-59</link>
		<author>Kamil</author>
		<pubDate>Sun, 23 Dec 2007 02:38:10 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-59</guid>
		<description>Thanks correct, 
I have dropped the minus sign all together. I do mention that the &lt;em&gt;j&lt;/em&gt; and &lt;em&gt;z&lt;/em&gt; flags are optional when extracting archives (under the &lt;b&gt;Extracting archives&lt;/b&gt; section).
Cheers,
Kamil</description>
		<content:encoded><![CDATA[<p>Thanks correct,<br />
I have dropped the minus sign all together. I do mention that the <em>j</em> and <em>z</em> flags are optional when extracting archives (under the <b>Extracting archives</b> section).<br />
Cheers,<br />
Kamil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: correct</title>
		<link>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-58</link>
		<author>correct</author>
		<pubDate>Sun, 23 Dec 2007 02:29:47 +0000</pubDate>
		<guid>http://linux.dsplabs.com.au/tar-how-to-create-and-extract-tar-gz-and-bz2-compressed-archives-under-linux-p39/#comment-58</guid>
		<description>hi

GNU tar does not require you to pass the minus sign for options, it is redundant.

Also,

recent (within the last few years) versions of GNU tar (as shipped for the majority of GNU/Linux distros) do not require you to specify the z or j flag when extracting archives

eg instead of tar xfz foo.tar.gz or tar xfj foo.tar.bz2 you can simply say 

tar xf foo.tar.gz

or
tar xf foo.tar.bz2</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>GNU tar does not require you to pass the minus sign for options, it is redundant.</p>
<p>Also,</p>
<p>recent (within the last few years) versions of GNU tar (as shipped for the majority of GNU/Linux distros) do not require you to specify the z or j flag when extracting archives</p>
<p>eg instead of tar xfz foo.tar.gz or tar xfj foo.tar.bz2 you can simply say </p>
<p>tar xf foo.tar.gz</p>
<p>or<br />
tar xf foo.tar.bz2</p>
]]></content:encoded>
	</item>
</channel>
</rss>

