Compressing multiple files into a single one has been a major task we do with computers. For Windows users, we are familiar with ZIP or RAR. However, for Mac computer gz or tar.gz file is more popular based on the nature macOS was built on with Unix. a .gz file is the outcome of a compressed file made by Gzip utility, which only compresses one file. Instead, tar.gz file is a compressed file made up by serveral single files. That's the difference between .gz and tar.gz file.
How to unzip files on mac computers. Unzipping a file on a mac computer is user-friendly and intuitive. To unzip files on a mac, simply follow the steps below: Double click the zipped file. The file will automatically be decompressed by Archive Utility into the same folder the compressed file is in. Aug 31, 2016 Or if you are really advanced user you can use the pkgutil that is already there on every Mac: pkgutil –expand dir-path. Will extract the contents on the package to dir-path. You can create ramdisk for this purpose and then inspect the files there. You can further expand expand payload files (which are compressed cpio archives) with: gunzip. Don't know what to do with your newly downloaded 7z file that doesn't want to play on your NDS lite? Well, you're in luck! This video will show you how to co.
By definition, therefore, you should be able to uncompress or unzip the file, and the command to be used for this purpose is 'gunzip'. On a Mac computer, you can use Terminal to run the gunzip command, but there are a few things to remember. You can also use a software utility for this purpose. Both methods are described in detail in the following sections.
Terminal is Apple's equivalent of the Windows shell, which is also known as Command Prompt. Using Terminal, you can easily uncompress a gz file. Once it has been unzipped, the file name will be retained and the .gz extension will be removed. The contents of the file will be extracted to the same directory where the .gz file is. Let's see how to do this on a Mac:
Step 1. Open an instance of Terminal on your Mac by going to Applications >> Utilities and clicking on Terminal.
Step 2. In the Terminal window, use the 'cd' command to take you to the specific folder where your gz file is present. For example, if your file is in ~/xyz/Documents, then type this command followed by Enter: cd ~/xyz/documents
Step 3. Now run the following command in the command line of Terminal: gunzip filename.gz
You must be in the same directory as the .gz file, or this command will not work.
The above command will decompress the file and extract the contents into a folder with the same name as the .gz file. However, if there's a file with the same filename already in that folder, you'll get an overwrite prompt. For example, if you have a file called 'Conversation1.doc' in the folder and your .gz file is called 'Conversation1.doc.gz', then you will be prompted to accept or reject an overwrite of the existing file when you run the gunzip command. To automatically overwrite the original, you can force the decompression by using the '-f' switch, in which case your command will need to be as follows. However, you will lose the original file if you do this: gunzip -f filename.doc.gz
There are clearly several issues that you have to watch for. First, you need to make sure that the Terminal shell is running in the same directory as your .gz file. Second, you need to make sure that any file with a similar filename is either renamed or moved to another directory if you want to keep it. Third, if the file is a .tar.gz, then in addition to decompressing the file, you will need a separate archive extractor utility to extract the contents of the .tar file that you get after running the gunzip command. Fourth, if you want to retain a copy of the .gz file, then you need to use a different switch, which is '-k'.
If you are not tech-savvy or have doubts about being able to do such intensive command line work, then you can consider a special software utility for Mac that can do the job for you
This software (TunesBro CleanGeeker) will help you avoid any command line work, and you can easily extract a gz file on your Mac with just a couple of clicks. The CleanGeeker software is essentially a Mac optimization utility that can help manage your Mac's memory resources by cleaning junk, duplicate and other unnecessary files. But it also has some very useful modules such as the Unarchiver (used here to extract gz files), Uninstaller for apps, Eraser for complete data deletion and many more.
In addition to being able to extract gz files, CleanGeeker can also extract other archive file types such as RAR, Zip, Tar, EML, Winmail.dat, Bzip2 and many more. Let's see how to extract a gz file using this versatile software.
Download the CleanGeeker DMG file from the official TunesBro website and install it on your Mac. Launch the application and go to the Unarchiver option under Utilities on the left-side panel.
Import the archive file either by clicking on 'Open Archive' or dragging and dropping the gz file in the CleanGeeker window. The extraction process is automatically started, and in a few seconds you'll be able to see the contents of the file.
You can choose to save the contents in a different location or open the file. You can also email the content using an associated email client.
The job is done in seconds and requires no additional input, which is why CleanGeeker is one of the most highly regarded Mac utilities. You also get a comprehensive Mac memory management suite when you download the software, which users find to be a big advantage. We recommend using CleanGeeker to extract gz files rather than using the command line method since it's safer, more convenient and more flexible.
Apple Devices - iPhone 12 Mini, iPhone 12, iPhone 12 Pro, iPhone 12 Pro Max, iPhone 11 Pro Max, iPhone 11 Pro, iPhone 11, iPhone XS, iPhone XS Max, iPhone XR, iPhone X, iPhone 8 (Plus), iPhone 7 (Plus), iPhone SE, iPhone 6s (Plus), iPhone 6 (Plus), iPad Pro, iPad Air, iPad Mini 4, iPad Mini 3, iPad Mini 2, iPad Mini 1, iPod Nano, iPod Classic, iPod Touch, iPod Touch 4, iPod Touch 4 HD, Apple TV (HD), Apple TV 2, iMovie, Final Cut Express, Final Cut Pro, etc.
Applications - QuickTime, iMovie, iTunes, Photos, Final Cut Pro, etc.
Microsoft Devices - Zune, Zune HD, Xbox 360, Xbox 360 HD, Xbox One, etc.
Sony Devices - PS4, PS3, PS3 HD, PlayStation 4
Nintendo - Wii. Wii HD, NDS-DPG, NDS-DPG2, NDS-DPG3, NDS-DPG4
MP4 Players - Archos, Creative Zen, iRiver, Walkman, etc
Mobile Phones - HTC, Motorola, Samsung Galaxy, Sony Xperia, LG, Huawei, OnePlus, ZTE, etc.
Popular Tablets - Apple iPad, Microsoft Surface, Samsung Galaxy Tab, Amazon Kindle Fire, ASUS Transformer, Motorola Xoom, Blackberry Playbook, Google Nexus 7, HP TouchPad, HTC Flyer/ EVO View/ Jetstream, PanDigital, Le Pan, Coby Kyros, Toshiba Thrive, Dell Streak, etc.
Additional reading: The Supported Format for Specific Application/Devices
External links: 1) OS X - official website at Apple; 2) iOS - official site