<?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>The Linux Noob &#187; decompress folder</title>
	<atom:link href="http://thelinuxnoob.com/tag/decompress-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin&#039; issues one ticket at a time</description>
	<lastBuildDate>Tue, 19 Jul 2011 12:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating an extracting tar files</title>
		<link>http://thelinuxnoob.com/linux/create-and-extract-tar-files/</link>
		<comments>http://thelinuxnoob.com/linux/create-and-extract-tar-files/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:37:28 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[compress folder]]></category>
		<category><![CDATA[decompress folder]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.gz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=36</guid>
		<description><![CDATA[The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. Tar.gz is a compressed tar file. How to create a compressed tar.gz file from a folder or file in Linux? In order to create a compressed tar.gz archive from a folder/file we need to run [...]]]></description>
			<content:encoded><![CDATA[<p>The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. <a href="http://en.wikipedia.org/wiki/Tar_(file_format)">Tar.gz</a> is a compressed tar file.</p>
<h3>How to create a compressed tar.gz file from a folder or file in Linux?</h3>
<p>In order to create a compressed tar.gz archive from a folder/file we need to run the following tar command:</p>
<p><code>tar -czf new-tar-file-name.tar.gz file-or-folder-to-archive</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>c &#8211; create new archive.</li>
<li>z &#8211; compress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>new-tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
<li>file-or-folder-to-archive &#8211; the name of the folder we want to archive.</li>
</ul>
<h3><span id="more-36"></span></h3>
<h3>How to create a compressed tar.gz file from multiple files and folders in Linux?</h3>
<p>In order to create a compressed tar.gz file from multiple files or/and folders we need to run the same tar command we used when we archived a single file/folder and to append the rest of the files/folders&#8217; names to it.</p>
<p><code>tar -czf new-tar-file-name.tar.gz file1 file2 folder1 folder2</code></p>
<h3>How to extract a compressed tar.gz file in Linux?</h3>
<p><code>tar -xzf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>z &#8211; uncompress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
<h3>How to extract a compressed tar.bz2 file in Linux?</h3>
<p>Extracting tar.bz2 (bzip2 file) is very similar to the way you extract tar.gz file. Instead of using the -z flag you need to use the -j flag for the bzip2 format</p>
<p><code>tar -xjf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>j - filter the archive through bzip2</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/create-and-extract-tar-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

