Select Page

Otherwise, keep reading to learn how to unzip .tar.gz files in Linux, macOS, and Windows. Gzip compression reduces the overall file size, which makes it more efficient for distribution, backup, and storage purposes. This places all of the files in the archive neatly into the “newfiles” directory.

  1. Otherwise, keep reading to learn how to unzip .tar.gz files in Linux, macOS, and Windows.
  2. We are skipping some arguments usually necessary to preserve permissions, which on Windows 10 are not required to access the files.
  3. You’ll probably have to install the “other” tar (whatever that may be on your system) manually.
  4. The tar format is just a format, and it’s an open format, so it can be created by more than just one tool.
  5. The tar command also provides support for extracting only specific files or directories from a .tar.gz file.

You may also be interested in learning about the best WinZip alternatives to compress files. That means users can download and use it for free during a trial period. Also, its trial version does not have time limitations, and users can still use it even after the trial period has expired, with occasional reminders to purchase the license. These files can be used in incremental backup strategies – where only new or modified files are added to the archive. It just bundles files & directories together while preserving their file structure and metadata. This means it takes all the specified files and puts them together into one container.

Extract .tar.gz, .tgz, .gz tarballs using tar on Windows 10

Right-click the first result and select the “Run as administrator” option. You can also add the verbose output option (-v) to provide detailed listings, including dates, securities/permissions, and more. You can also use –wildcards to extract all files with a certain extension or name.

You can use the -C option to extract to a different directory (in this case, /home/user/files). On the other hand, Windows users can rely on third-party file archiver tools like 7-zip or WinRAR to effortlessly extract files. Knowing how to unzip a .tar.gz file allows users to extract and how do you mine bitcoin access the archives’ contents efficiently. The biggest advantage of tar.gz files is that they are more compact and easier to handle than other compressed archive formats. Given this structure, the site admin could extract your incoming archive directly to the server’s root directory.

Add a file or directory to an existing tarball

To unzip a tar.gz file on Windows, you can either download the 7zip archive utility or install Linux through the WSL. The former encodes your file in a sequential archive format suitable for magnetic tapes, while the latter compresses it to a smaller size. It is assumed that you are extracting a tarball created on another system. We are skipping some arguments usually necessary to preserve how to become a user interface ui designer 2022 update permissions, which on Windows 10 are not required to access the files. Once you complete the steps, you will have all the files and folders extracted to the destination path you specified after a few moments. I had a lot of fun, three years ago or so, running a bunch of tests with different compression methods, and it was very enlightening to see how various files took to compression.

In total, Mauro has over 20 years of combined experience in technology. Once you’re comfortable with the basics, it’s useful to explore other features. Connect and share knowledge within a single location that is structured and easy to search. Get started with a free trial of our Application Hosting or Database Hosting. For more information and to schedule a live demo, contact a hosting expert from Kinsta today. Here’s a guide to uninstall BetterDiscord to help you get on the legal side.

If you’re not comfortable with the terminal or command line, third-party tools such as 7-Zip offer a more user-friendly alternative. You can just as easily unzip the resulting .tar.gz file with the decompress (-d) option. Thankfully, you don’t need to be a 1960s computer technician to use and extract .tar files – nor do modern .tar files even have anything to do with old computers. This compression is lossless – that means no data is lost during the compression process, and the original files can be fully restored upon extraction.

Popular SSH Commands for WordPress Users to Start Using

But with .zip being the easier of the two to use, why use .tar in the first place? As we’ll see in the next section, .tar comes with a few extra features that make it the better compression format for certain files and applications. A user-friendly way to extract files from a .tar.gz archive is via a Graphical User Interface (GUI). While the file manager in most distributions can work with tar.gz, there are cases where you need a more powerful tool to do the job.

Xarchiver is a highly flexible graphical program that can unzip archives and portable package formats in Linux. This is good and pretty comprehensive, Seth.One thing to point out is that, since .jpg and .png files are already compressed, you won’t get much compression with gzip. In the shell, you can add a file or directory to a tar archive as long as it is not compressed. If your archive has been compressed, you must uncompress it, but you do not need to unarchive it. It’s easy to get confused when navigating between .tar, .tar.gz, and .gz – not to mention zipping and unzipping them.

As we’ll see later, different compression utilities may require different methods for extracting and unzipping files. Though we’ll mostly focus on .tar.gz files, check out the end of the article for some quick tips on extracting .tar files in other formats. Though both .zip and .tar.gz archive and compress files, they do so in different ways. In other words, .zip is a collection of compressed files, while .tar.gz is a compressed collection of files.

Troubleshooting Common Errors

Uncheck the “Touch files” option on the Extract Files dialog box, then enable either the “Update existing files” option or the “Freshen existing files only” checkbox. On Linux, BSD, Illumos, and even Mac OS, the tar command is already installed for you. Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years.

If you want to keep the original file after compression, there are two options. The first is the -k option, and the other uses the -c option to output the compressed file to a different file, preserving the original. You can easily extract .tar.gz files using third-party tools like 7 zip and Winrar on the Windows system. This format is common in the Unix/Linux world and is widely used to create compressed archives.

Like the tar utility, gzip also allows you to zip and unzip multiple files or entire directories at a time. To unzip the .tar.gz files, you’ll need to use specific commands and tools depending on your operating system. Let’s explore the extraction process for both Linux & Windows platforms.

As a result, we recommend sticking to free (but trustworthy) tools or simply using the command line. While there are many tools to choose from, the most popular include 7-Zip and WinZip. While slightly different, they are quite lightweight and offer a much simpler alternative to using the command line. It also integrates with changing git default branch from master to main on command line cli the Windows Explorer context menu, which enables users to create and extract archives directly from the right-click menu. You can notice in the above image that the archive files are extracted in the same working directory. Then we’ll jump into the step-by-step process of unzipping on both Linux and Windows platforms.

Usually, tar files are more common with Ubuntu (other Linux distros) and macOS users for data archival and backups. However, Windows 10 users may also come across these files, which is a reason to have a way to extract their contents. A file using .tar.gz format is a file that has been created using the Unix-based archival application tar and then compressed using the gzip compression.

This is not just about how to turn on and off sticky keys but a wholesome guide to using them for making a few things simple on a Windows PC. The two most important software used by small to medium organizations to run the IT infrastructure and operations efficiently are Windows Server and Office 365 (Microsoft 365). Are you facing the issue of low memory error on your system while performing basic tasks on your Windows PC? This simplifies file management and reduces the risk of data loss during transfers. Once you choose the directory, click the Select button in the top right corner.