<?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 files Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/compress-files/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jul 2022 23:11:27 +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>The best file compressors for PC.</title>
		<link>https://www.osradar.com/the-best-file-compressors-for-pc/</link>
					<comments>https://www.osradar.com/the-best-file-compressors-for-pc/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Thu, 21 Jul 2022 23:11:25 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[7zip]]></category>
		<category><![CDATA[compress files]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[zip]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=36534</guid>

					<description><![CDATA[<p>File compressors are a very useful type of application for any PC. Logically, there is an increase in the storage capacity of hard disks or SSDs. However, the available space can be a problem for many personal computers. Consequently, this software is especially suitable for that. Moreover, they are not only useful for saving internal [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/the-best-file-compressors-for-pc/">The best file compressors for PC.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.osradar.com/this-website-offers-the-conversion-for-most-types-of-files/" target="_blank" rel="noreferrer noopener">File</a> compressors are a very useful type of application for any PC. Logically, there is an increase in the storage capacity of hard disks or SSDs. However, the available space can be a problem for many personal computers. Consequently, this software is especially suitable for that. Moreover, they are not only useful for saving internal storage space. Many popular email services, such as Outlook and Gmail, have attachment size limits. So, file compressors make it possible to send more files in a single e-mail. The same when uploading them to a cloud storage service where there is no spare space available. Furthermore, for sharing them on direct download sites or Torrent networks. For these reasons and many more, today we are going to see The best file compressors for PC.</p>



<h2>Benefits of file compressors.</h2>



<p>In addition to freeing up space, this type of software also allows you to better organize your files. That is, you can include 10, 100, 1000 in a single compressed file. Or on the contrary, you can split a large file into smaller ones to be able to store them or transmit them on the Internet more efficiently.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="1024" height="1024" src="https://www.osradar.com/wp-content/uploads/2022/06/c.png" alt="" class="wp-image-36537" srcset="https://www.osradar.com/wp-content/uploads/2022/06/c.png 1024w, https://www.osradar.com/wp-content/uploads/2022/06/c-300x300.png 300w, https://www.osradar.com/wp-content/uploads/2022/06/c-150x150.png 150w, https://www.osradar.com/wp-content/uploads/2022/06/c-768x768.png 768w, https://www.osradar.com/wp-content/uploads/2022/06/c-696x696.png 696w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Another of its capabilities, less known among the public, but no less important, is the ability to encrypt these files. In this way, we will be able to save or share them securely. On the other hand, some of them allow you to automate, customize and schedule compression tasks. They also include functions to transfer files using the FTP protocol directly from the interface. Other functions range from emailing and direct recording to optical media. To the connection with cloud storage services.</p>



<p>This type of software must be able to compress or decompress files interchangeably. There are paid and free solutions that support various archive formats, including the three most widespread ZIP, RAR and TAR. Similarly, there are factors that affect their selection:</p>



<ul><li>The support for handling formats;</li><li>The speed of compressing and decompressing; </li><li>The usability or attractiveness of the interface</li><li>Encryption functions</li></ul>



<p>Let&#8217;s take a look at some of the most interesting ones.</p>



<h3>7-Zip</h3>



<p>Free and open-source software, it is the great reference for those who are looking for a completely free application of this type. It uses its own <em>7z</em> file format by default. However, it supports others such as ZIP and RAR for both decompression and compression. As with most of the rest, it can decompress RAR files, but not create them. 7z uses a variety of compression algorithms such as bzip2, LZMA and LZMA2. In addition, it has auto-extract capability, drag-and-drop support and a powerful archive manager.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="https://www.osradar.com/wp-content/uploads/2022/06/c2-1024x787.png" alt="" class="wp-image-36535" srcset="https://www.osradar.com/wp-content/uploads/2022/06/c2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2022/06/c2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2022/06/c2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2022/06/c2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2022/06/c2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2022/06/c2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><a href="https://www.7-zip.org/download.html" target="_blank" rel="noreferrer noopener">7-Zip</a> is available for Windows 32-bit and 64-bit systems, where it integrates with context menus. It has command line and versions for Linux or macOS. Its interface is not the most intuitive, but if you are looking for free file compressors, you will not find anything better.</p>



<h3>WinZip</h3>



<p>The great classic of the .zip format started as a graphical user interface for PKZIP. However, it ended up becoming a commercial product for Windows. Under an attractive interface and with a powerful wizard, it offers a lot of the functions mentioned above:</p>



<ul><li>256-bit AES encryption,</li><li>Direct burning to DVD, thumbnail view,</li><li>Auto extraction,</li><li>Automatic compression selection</li></ul>



<p>It handles any ZIP feature and supports other formats such as ARC, ARJ and LZH with external programs. It also supports 7z, TAR and RAR file extraction. Furthermore, it also handles audio with improved compression of WAV files. WinZip offers free trial for Windows. However, it is commercial software and is sold in several standard and Pro versions starting at 36 euros as a one-time payment. If you use this format a lot, you have to admit that there is nothing better for handling the ZIP format on <a href="https://www.winzip.com/en/" target="_blank" rel="noreferrer noopener">Windows.</a></p>



<h3>WinRar</h3>



<p>The big name around the RAR format, a great alternative to the ZIP format, but closed. It offers incredible levels of compression (better than zip). Plus lightning fast speeds when compressing or decompressing and a pretty good 128-bit AES encryption tool. Besides being the only application capable of creating archives in this format, it can handle virtually all others, zip, 7z, TAR, iSO and so on. It can also create self-extracting archives (EXE) for which no other decompression software is needed.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="946" height="710" src="https://www.osradar.com/wp-content/uploads/2022/06/c3.png" alt="" class="wp-image-36536" srcset="https://www.osradar.com/wp-content/uploads/2022/06/c3.png 946w, https://www.osradar.com/wp-content/uploads/2022/06/c3-300x225.png 300w, https://www.osradar.com/wp-content/uploads/2022/06/c3-768x576.png 768w, https://www.osradar.com/wp-content/uploads/2022/06/c3-696x522.png 696w, https://www.osradar.com/wp-content/uploads/2022/06/c3-265x198.png 265w" sizes="(max-width: 946px) 100vw, 946px" /></figure>



<p><a href="https://www.win-rar.com/start.html?&amp;L=0" target="_blank" rel="noreferrer noopener">WinRAR </a>is commercial software and is distributed for 64-bit Windows in several versions for personal or professional use for a one-time fee. A 40-day free trial is offered. On the other hand, the UNRAR variant (only for decompressing this format) is released for other systems and is integrated or can be installed on GNU/Linux distributions.</p>



<h3>PeaZip</h3>



<p>A free and open-source solution that provides a more attractive and usable interface for the ordinary consumer than the one offered by 7-zip. Remember that it uses it as a base for its free software distribution. It allows compressing and decompress in 200 formats such as 7z, Tar and Zip. In addition, it can decompress RAR and also compress, although for this, you have to have WinRAR installed. It implements a powerful and complete file manager to edit, view, browse, and search files. It also includes an extensive set of data security features with strong AES encryption, encrypted password manager, optional two-factor authentication, secure deletion and file hashing tools.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="631" src="https://www.osradar.com/wp-content/uploads/2022/07/c4-1024x631.png" alt="" class="wp-image-36576" srcset="https://www.osradar.com/wp-content/uploads/2022/07/c4-1024x631.png 1024w, https://www.osradar.com/wp-content/uploads/2022/07/c4-300x185.png 300w, https://www.osradar.com/wp-content/uploads/2022/07/c4-768x473.png 768w, https://www.osradar.com/wp-content/uploads/2022/07/c4-696x429.png 696w, https://www.osradar.com/wp-content/uploads/2022/07/c4.png 1026w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><a href="https://peazip.github.io/" target="_blank" rel="noreferrer noopener">PeaZip </a>is available for Windows, Linux, BSD or ARM 32-bit and 64-bit. If you are looking for a 7-Zip with a modern and attractive user interface, this application is for you.</p>



<h3>B1 Free Archiver</h3>



<p>Less known among file compressors, it uses a native open source <a href="https://www.b1.org/" target="_blank" rel="noreferrer noopener"><em>B1</em> </a>format. With an attractive interface (it also works on command line), it allows you to compress/decompress formats such as B1 and Zip. Although it only allows compressing RAR. It offers password-protected archives encrypted with 256-bit AES algorithm.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="960" height="515" src="https://www.osradar.com/wp-content/uploads/2022/06/c5.png" alt="" class="wp-image-36540" srcset="https://www.osradar.com/wp-content/uploads/2022/06/c5.png 960w, https://www.osradar.com/wp-content/uploads/2022/06/c5-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2022/06/c5-768x412.png 768w, https://www.osradar.com/wp-content/uploads/2022/06/c5-696x373.png 696w" sizes="(max-width: 960px) 100vw, 960px" /></figure>



<p>B1 Free Archiver is available for Windows, macOS and Linux, and also has an online version.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/the-best-file-compressors-for-pc/">The best file compressors for PC.</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/the-best-file-compressors-for-pc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to compress and decompress files in Android</title>
		<link>https://www.osradar.com/how-to-compress-and-decompress-files-in-android/</link>
					<comments>https://www.osradar.com/how-to-compress-and-decompress-files-in-android/#comments</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 27 Dec 2019 00:49:57 +0000</pubDate>
				<category><![CDATA[Mobiles]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[compress file android]]></category>
		<category><![CDATA[compress files]]></category>
		<category><![CDATA[extract rar on android]]></category>
		<category><![CDATA[extract zip on android]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[zip]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17123</guid>

					<description><![CDATA[<p>Hi, how are you? This time we&#8217;ll talk a little bit about Android. It is well known that this is the most used mobile operating system worldwide. Similarly, a smartphone is used for multiple daily tasks. One of them is file management. In fact, the exchange of information through the Internet or social networks is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-compress-and-decompress-files-in-android/">How to compress and decompress files in Android</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, how are you? This time we&#8217;ll talk a little bit about Android. It is well known that this is the most used mobile operating system worldwide. Similarly, a smartphone is used for multiple daily tasks. One of them is file management. In fact, the exchange of information through the Internet or social networks is a very common activity. Consequently, many users download and send files in different formats. Sometimes, these files are compressed. On a computer, handling these files is not a major problem. However, perhaps you didn&#8217;t know that in Android it is possible to manage them natively. For that reason, I show you how to compress and decompress files in Android.</p>



<h2> Compress files in Android. </h2>



<p>A great advantage provided by the operating system is that it is possible to manage compressed files natively. In other words, there is no need to download third-party tools. However, it is good to clarify that if the management of compressed files will be frequent, then it is advisable to download special tools. If not, then Android provides everything needed to work with compressed files. Well, to compress files we will use the File Manager application. This app is present in most Android devices. Please note that this app can be different on computers with a custom interface. This happens on<a rel="noreferrer noopener" aria-label=" Samsung (opens in a new tab)" href="https://www.samsung.com/us/mobile/phones/" target="_blank"> Samsung</a> devices, the <a rel="noreferrer noopener" aria-label="EMUI (opens in a new tab)" href="https://consumer.huawei.com/latin-en/" target="_blank">EMUI</a> layer or the <a rel="noreferrer noopener" aria-label="MIUI  (opens in a new tab)" href="https://en.miui.com/" target="_blank">MIUI </a>interface. However, the functionality is almost the same.</p>



<p>To compress the files, just launch the File Manager application. Once there, select the files with a long touch.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_19-56-49-485x1024.jpg" alt="Select the files to be compressed." class="wp-image-17140" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_19-56-49-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_19-56-49-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_19-56-49-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_19-56-49.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption> Select the files to be compressed. </figcaption></figure>



<p>Then, click on the menu and select the option <strong>Compress</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_20-00-05-485x1024.jpg" alt="Compresses the selected files." class="wp-image-17141" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-00-05-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-00-05-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-00-05-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-00-05.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption>Compresses the selected files.</figcaption></figure>



<p>The wizard will assign a default name related to the files. However, you can choose any name. In addition, the file will be saved in ZIP format.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_20-01-16-485x1024.jpg" alt="Files finally compressed." class="wp-image-17143" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-01-16-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-01-16-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-01-16-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-01-16.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption>Files finally compressed.</figcaption></figure>



<p>At the end of the process, you&#8217;ll see the zip file. The only drawback of this method is that all files must be in the same folder.</p>



<h2>Decompressing files on Android.</h2>



<p>To decompress the files, the process is as simple as the previous one. The first thing you have to do is open the File Manager application, and select the compressed file. Immediately a menu will be displayed with the file options. It is possible to unzip the file in the same location or in another folder. In this case, we&#8217;re going to decompress the file in a different location.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_20-15-12-485x1024.jpg" alt="Decompress the files in another location" class="wp-image-17145" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-15-12-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-15-12-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-15-12-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-15-12.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption>Decompress the files in another location</figcaption></figure>



<p>Then the file explorer will show the folders present in the system. Just choose one, and click on Extract.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_20-18-45-485x1024.jpg" alt="Extract the files to the selected folder." class="wp-image-17147" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-18-45-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-18-45-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-18-45-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-18-45.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption>Extract the files to the selected folder.</figcaption></figure>



<p>After the decompression is completed, a folder will be created with the files in the selected location. Please enter it to see the unzipped files.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="485" height="1024" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/photo_2019-12-26_20-21-07-485x1024.jpg" alt="Decompressed files." class="wp-image-17149" srcset="https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-21-07-485x1024.jpg 485w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-21-07-142x300.jpg 142w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-21-07-199x420.jpg 199w, https://www.osradar.com/wp-content/uploads/2019/12/photo_2019-12-26_20-21-07.jpg 606w" sizes="(max-width: 485px) 100vw, 485px" /><figcaption>Decompressed files.</figcaption></figure>



<h2>Conclusion</h2>



<p>As has been noted, the procedure for compress and decompress files on Android is very simple. However, as we warn, if you are going to work with a lot of compressed files, then it is advisable to download third-party tools. Some of the most efficient ones are <a href="https://play.google.com/store/apps/details?id=com.rarlab.rar" target="_blank" rel="noreferrer noopener" aria-label="RAR (opens in a new tab)">RAR</a>, <a href="https://play.google.com/store/apps/details?id=com.winzip.android" target="_blank" rel="noreferrer noopener" aria-label="WinZip (opens in a new tab)">WinZip</a>, and <a rel="noreferrer noopener" aria-label="7Zipper (opens in a new tab)" href="https://play.google.com/store/apps/details?id=org.joa.zipperplus7" target="_blank">7Zipper</a>. All right, that&#8217;s it for now. Before I say goodbye, I invite you to check out our post about <a rel="noreferrer noopener" aria-label="encrypting USB  (opens in a new tab)" href="https://www.osradar.com/how-to-encrypt-usb-drives-in-windows-10/" target="_blank">encrypting USB </a>drives on Windows 10.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-compress-and-decompress-files-in-android/">How to compress and decompress files in Android</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-in-android/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Use tar command to archive/compress files/folders in Linux</title>
		<link>https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/</link>
					<comments>https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 30 Sep 2019 09:37:16 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[compress files]]></category>
		<category><![CDATA[compress folders]]></category>
		<category><![CDATA[tar command]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13987</guid>

					<description><![CDATA[<p>tar is a Linux utility. It is stand for tape archive. tar command is use to collect many files/directories into one archive file, often referred to as a tarball. Normally it used for distribution or backup purposes. It is most popular tool in Linux systems to create compressed archive files. In this article you will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/">Use tar command to archive/compress files/folders in 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>tar is a Linux utility. It is stand for tape archive. tar command is use to collect many files/directories into one archive file, often referred to as a tarball. Normally it used for distribution or backup purposes. It is most popular tool in Linux systems to create compressed archive files.</p>



<p>In this article you will learn that how to use tar command for data archive and its compression using (tar, tar.gz, tar.bz2).</p>



<p>We will use below tar tools.</p>



<p><strong>1-    Tar<br>2-    Gzip<br>3-    Bzip2</strong></p>



<h2>Create tar Archive File</h2>



<p>So, in below example we will create a tar archive file data.tar for a directory /boot in current working directory.</p>



<pre class="wp-block-preformatted">tar -cvf data.tar /boot<br>
ls</pre>



<p><strong>c </strong>– Creates a new .tar archive file.<br><strong>v</strong> – Verbosely show the .tar file progress.<br><strong>f </strong>– File name type of the archive file.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1024x614.png" alt="" class="wp-image-13989" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Untar (Un-Compress) Archive File</h2>



<p>Now, we will un-compress data.tar archive file in current working directory using below command.</p>



<pre class="wp-block-preformatted">tar -xf data.tar</pre>



<p><strong>x</strong> to extract archive file.</p>



<p></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="188" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1024x188.png" alt="" class="wp-image-13990" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1024x188.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-768x141.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-696x128.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1068x196.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>uncompress or extract an archive in current working directory.</figcaption></figure>



<p>So what if you want to Un-compress archive in different path or directory. use -C (Capital C) in command and specify your path to un-compress it, Please see below example command.</p>



<pre class="wp-block-preformatted">tar -xf data.tar -C /media<br>ls /media</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="175" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1024x175.png" alt="" class="wp-image-13991" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1024x175.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-696x119.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1068x183.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can see in above image that <strong>boot</strong> directory is uncompressed in <strong>/media </strong>directory.</p>



<h2>Create tar.gz (gzip) Archive File</h2>



<p>If you want to compress a file/folder with gzip, then you have to use &#8220;z&#8221; in tar command and make archive extension as .tar.gz</p>



<p><strong>z</strong> &#8211; To create a compressed gzip archive file</p>



<p>Run below command</p>



<pre class="wp-block-preformatted">tar -czf data.tar.gz /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="222" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1024x222.png" alt="" class="wp-image-13992" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1024x222.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-768x167.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-696x151.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1068x232.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Un-compress gzip archive file</h2>



<pre class="wp-block-preformatted">tar -xf data.tar.gz</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="203" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1024x203.png" alt="" class="wp-image-13993" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1024x203.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-768x152.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-696x138.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1068x212.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, you can also un-compress gzip file in your desired directory</p>



<pre class="wp-block-preformatted">tar -xf data.tar.gz -C /media</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="166" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1024x166.png" alt="" class="wp-image-13994" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1024x166.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-768x124.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-696x113.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1068x173.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Create tar.bz2 Archive File</h2>



<p>The bz2 feature is used to highly compress and create archive. Its archive size is small then gzip archive. The bz2 compression takes more time to compress and decompress files as compared to gzip which takes less time.</p>



<p><strong>j</strong> &#8211; To create highly compressed tar file, Use following command</p>



<pre class="wp-block-preformatted">tar cj data.tar.bz2 /boot</pre>



<h2>Un-compress bz2 archive file</h2>



<pre class="wp-block-preformatted">tar -xf data.tar.bz2</pre>



<p>Now, un-compress it in another directory</p>



<pre class="wp-block-preformatted">tar -xf data.tar.bz2 -C /media</pre>



<h2>List Content of Archive File</h2>



<p><strong>t</strong> &#8211; it is used to list archive data without extract it.</p>



<p>tar -tvf data.tar<br>tar -tvf data.tar.gz<br>tar -tvf data.tar.bz2</p>



<p>That&#8217;s it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/">Use tar command to archive/compress files/folders in 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/use-tar-command-to-archive-compress-files-folders-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
