<?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>compress file Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/compress-file/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jun 2018 20:42:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Compress and Decompress Files on Linux</title>
		<link>https://www.osradar.com/how-to-compress-and-decompress-files-on-linux/</link>
					<comments>https://www.osradar.com/how-to-compress-and-decompress-files-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 15 May 2018 10:18:09 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[compress file]]></category>
		<category><![CDATA[compress files]]></category>
		<category><![CDATA[compress linux]]></category>
		<category><![CDATA[decompress]]></category>
		<category><![CDATA[decompress linux]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=3065</guid>

					<description><![CDATA[<p>Linux is really powerful platform loaded with strong compressing and decompressing mechanisms built-in. For Linux users, you may already have learned the name of .ZIP, .GZ, .TAR.GZ, .TGZ, .BZ2 etc. file types, right? These are different file compression methods and file types that Linux support by default. You can compress and decompress files into the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-compress-and-decompress-files-on-linux/">How to Compress and Decompress Files on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux is really powerful platform loaded with strong compressing and decompressing mechanisms built-in. For Linux users, you may already have learned the name of .ZIP, .GZ, .TAR.GZ, .TGZ, .BZ2 etc. file types, right? These are different file compression methods and file types that Linux support by default. You can compress and decompress files into the formats on all the Linux distros.</p>
<p>Now, let’s take a look how to compress files into the following format.</p>
<p>Compressing files</p>
<ul>
<li>
<h3>ZIP</h3>
</li>
</ul>
<p>Zip is definitely one of the most popular compressed file formats. It’s widely used in all the platforms and really powerful for basic usage.</p>
<p>For compressing, ZIP uses the following structure:</p>
<pre>zip {.zip-filename} {filename-to-compress}</pre>
<p>If you want to compress a directory using ZIP, run this command:</p>
<pre>zip -r {.zip-filename} {directory-to-compress}</pre>
<p>In this example, I’m going to compress my Thunderbird profile. It’s also an awesome trick for <a href="https://www.osradar.com/how-to-backup-thunderbird-profile-linux/">backing up your Thunderbird profile</a>.</p>
<pre>zip -r thunderbird-backup.zip ~/.thunderbird</pre>
<p><img loading="lazy" class="size-full wp-image-3067 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files.png" alt="" width="1183" height="501" srcset="https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files.png 1183w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-300x127.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-768x325.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-1024x434.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-696x295.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-1068x452.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/zip-compress-files-992x420.png 992w" sizes="(max-width: 1183px) 100vw, 1183px" /></p>
<p>For decompressing the ZIP file, run this command:</p>
<pre>unzip thunderbird-backup.zip</pre>
<ul>
<li>
<h3>TAR</h3>
</li>
</ul>
<p>It’s a really powerful tool for compressing and decompressing the file(s) and directory. It’s more widely used as it offers more support for advanced compressing formats like TAR.BZ2. For compressing a file or directory using TAR command, follow the following structure:</p>
<pre>tar -zcvf {.tgz-file} {files/directory} [using gzip compression method]
tar -jcvf {.tbz2-file} {files/directory} [using bz2 compression method]</pre>
<p>For example, I’ll be compressing my “~/.thunderbird” directory. If you want to compress the file(s), just exchange the later part of the command.</p>
<pre>tar -jcvf thunderbird-email-profile.tar.bz2 .thunderbird</pre>
<p><img loading="lazy" class="size-full wp-image-2850 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup.png" alt="" width="1187" height="401" srcset="https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup.png 1187w, https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup-300x101.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup-768x259.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup-1024x346.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup-696x235.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/thunderbird-profile-backup-1068x361.png 1068w" sizes="(max-width: 1187px) 100vw, 1187px" /></p>
<p>For decompressing the file, run this command:</p>
<pre>tar -xvf thunderbird-email-profile.tar.bz2</pre>
<p>There&#8217;s also another file type called XZ. This one follows extreme compression method and used for compressing lots of small files into one, tight archive.</p>
<p>For turning into XZ archive, use the following command structure:</p>
<pre>tar -cvJf filename.tar.xz /directory/*</pre>
<ul>
<li><span style="color: #111111; font-family: Roboto, sans-serif; font-size: 22px;">GZIP &amp; BZIP2</span></li>
</ul>
<p>These tools also come pre-installed in most of the Linux distros. They’re not used as frequently as they lack the ability to compress directory. These are generally there for serving as the algorithm source for other software like TAR. However, you can still use them in the same way. The command line structure is quite same.</p>
<pre>gzip {filename}
bzip2 {filename}</pre>
<p>For decompressing a compressed file, use the following commands:</p>
<pre>bzip2 -d {.bz2-file}
gzip -d {.gz file}</pre>
<p>Voila! Enjoy the powerful compression feature of Linux!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-compress-and-decompress-files-on-linux/">How to Compress and Decompress Files on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-compress-and-decompress-files-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
