`gzip` (or GNU zip) is a file format and corresponding utility for compressing files using the DEFLATE algorithm. The usual extension is `.gz`.

learn more… | top users | synonyms

7
votes
3answers
3k views

Is there away to mount a file.tar.bz2 without extracting onto your fs?

Is there away to mount a file.tar.bz2 without extracting? I don't care if it is read only. Hopefully your answer will also apply to file.tar.gz as well. "mount" in this context is meant to be akin ...
0
votes
1answer
625 views

With which command should I open .raw.gz files?

I have a bunch of .raw.gz files which are data files streamed from twitter with JSON interface. I am wondering which command should I use on my Mac OSX to open (unzip) these files? I have tried tar, ...
28
votes
4answers
5k views

gzip without tar? Why are they used together?

Why are tar and gzip almost always used together, and not just gzip? Is there any advantage to that method?
8
votes
4answers
5k views

gzip all files without deleting them

I need to gzip all files in a dir separately including all files in sub-directories without deleting the originals afterwards. So let's say I have index.html, I want to have at the end index.html.gzip ...
0
votes
2answers
3k views

How to make sure a .tar.gz file is valid and will uncompress correctly?

I have a few BIG .tar.gz files, and I want to make sure they will uncompress, but without actually doing it. If the file opens on "Archive Manager" on Ubuntu, and I can view it contents there, does ...
32
votes
5answers
19k views

Pros and cons of bzip vs gzip?

I've known gzip for years, recently I saw bzip being used at work. Are they basically equivalent, or are there significant pros and cons to one of them over the other?
1
vote
2answers
507 views

Join with gzipped files

I want to use the command line join utility on two files. Unfortunately, they're gzipped. Because they're both gzipped, I can't use gzip -cd. Is there a slick way to do this without having to unzip ...
7
votes
1answer
11k views

How to list the contents of a zip along w/ file sizes and compression ratio via cmd line

How do I list the contents of a zip along w/ file sizes and compression ratio (or packed size) on osx w/ command line tools?
0
votes
2answers
1k views

Help on writing Linux script to backup and ftp files to another server

I am using MySQL as the database system for my application on a Linux system. Every week I update the system and take backups (mysqldump) of the databases changed (2 databases). I then .tar.gz them ...
0
votes
4answers
1k views

Firefox, saving all images from every page so that they are retrievable?

I'm having a bit of trouble finding a way to do this, I know that firefox saves images to a cache file but it is in a gzip archive file that I am unable to unzip (just gives error when I try, I'm ...
1
vote
2answers
3k views

gzip for 64-bit Windows

Does anyone know any version of Gzip which supports 64-bit Windows? I could not find anything.
-1
votes
3answers
9k views

How to remove gzip from Linux

I tried sudo aptitude remove gzip and it looked like it uninstalled but when I typed gzip at the terminal it still ran.
1
vote
0answers
1k views

Repair tar.gz files with a GUI

I have been downloading back ups from my web hosts cpanel on a weekly basis. The back ups are in tar.gz format. However, when I try to extract them, I get an error message stating that they are ...
19
votes
7answers
35k views

tar: Exiting with failure status due to previous errors

I have written a little script that tars and compresses a list of directories + files. The script appears to run succesfully, in that a useable .tar.gz file is created after the script runs. ...
39
votes
4answers
45k views

How to password protect gzip files on the command line?

I want to create some tar.gz (and possibly tar.bz2) files, using the tar command on Ubuntu 10.04. I want to password protect the file. What is the command to do this (I have Googled, but found ...
14
votes
5answers
37k views

Command to 'gzip' a folder?

I am new to Mac command prompt stuff. How do you create a gzip of a folder in Mac OS X? I was told by a few folks that if you want to create a gzip of a folder you should 'tar' it first and then ...
1
vote
2answers
12k views

tar Cannot open: No such file or directory

Fresh install of CentOS 5.4 Downloaded the following: http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz MD5 sum is correct (cdcc09d71d85d81914a90413eaf21d3f). The file is located ...
6
votes
4answers
532 views

Tar and gzip together, but the other way round?

Gzipping a tar file as whole is drop dead easy and even implemented as option inside tar. So far, so good. However, from an archiver's point of view, it would be better to tar the gzipped single ...
19
votes
5answers
31k views

What is the maximum compression ratio of gzip?

What is the largest size a gzip (say 10kb for the sake of an example) can be decompressed to?
0
votes
1answer
537 views

Binaries for gnu tar and gnu gzip

I would like to know where i can download the binaries for gnu tar and gnu gzip for various platforms ( aix64, hp64, hpia64, intel, linia32, linia64, linx64, solus64, solx64, winx64) Thanks,
0
votes
2answers
4k views

How to delete a tar file after I gzip it?

I am creating a tar file and then I am gzipping the tar file. So I am getting a .tgz file and now I want to delete the previous tar file. ${gzipExe} -f --rsyncable $tarname.TAR --stdout >> ...
4
votes
1answer
1k views

Does Linux GZip Zip the File in Place or create a new file

I have a 1.5TB size text file that I need to gzip down, the current drive it is on has little to no space left. I have another drive with 400G left on it. My question is, if I gzip the file, will it ...
4
votes
2answers
855 views

Tell if a .gz file is really gzipped

What is a nice command-line trick to tell if a .gz file is really gzipped, as opposed to being a non-Gzip file just named that way?
13
votes
4answers
5k views

Rsync friendly gzip

I must not be the only one - I'm rsyncing .tar.gz files and notice that every time the full file gets rsynced rather than the differences. Reading into it it seems back in 1999 someone created an ...
2
votes
4answers
445 views

Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?

I use the "diff" command to compare two compressed files generated using zip on the exact same starting file and they are reported as being different. However, when I uncompress them and use the ...
1
vote
3answers
2k views

How to decompress the *.TGZ file without changing the orginal file? [duplicate]

Possible Duplicate: How do you gunzip a file and keep the .gz file ? I decompress the file using following command: gunzip -f test.TGZ This gave me test.tar file but I lost the test.TGZ ...
11
votes
5answers
7k views

SVN directly to tar

Is there a way to directly tar the latest version of an SVN folder without the SVN hidden files? I would like to create a tar archive without the SVN files. I know you can get the latest with the SVN ...
4
votes
3answers
34k views

How do I gunzip a directory?

I have a gzipped directory called "new" which contains other directories and files, that I compressed in the following way gzip -cvr --no-name /path-to-directory/new > new.gz I have copied this ...
2
votes
2answers
1k views

How do I tar/gzip and then delete directories somewhat safely?

How should I tar/gzip and delete files somewhat safely? Background: We're running a little low on disk space on a Ubuntu computer (Hardy Heron), and I want to tar/gzip, verify that it worked, and ...
2
votes
2answers
2k views

gzip compressed file ownership and permissions

I'm trying to find out how gzipping a file changes its permissions. The gzip manual (man gzip) says: Whenever possible, each file is replaced by one with the extension .gz, while keeping the ...
3
votes
1answer
7k views

What can be used to 'gzip' in Windows?

gzipped files are awesome! they are the best compressed files I know, .rar and .zip are nowhere near , if you compare the compression ratios... Generally I use Windows, does anyone know how can I ...
4
votes
2answers
4k views

Bash command to compress folder(s) with a password

How can I compress two folders into archive file (zip, gzip or something like that) with a password on the files? For example I have folder structure: rootDir dir1 dir2 dir3 dir4 I need bash ...
1
vote
3answers
2k views

programmatically extract tar.gz in a single step (on windows with 7zip)

PROBLEM: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: stackoverflow question for tar-gz. My question is almost the same, but ...
6
votes
7answers
697 views

Moving files in a local network - would compressing improve speed?

I am moving some 20Gb within my local network (100 Mbit/sec). The files are from a typical Linux desktop system. Would compressing them using Tar\Gzip and then sending them improve performance? ...
3
votes
6answers
3k views

Converting gzip files to bzip2 efficiently

I have a bunch of gzip files that I have to convert to bzip2 every now and then. Currently, I'm using a shell script that simply 'gunzip's each file and then 'bzip2's it. Though this works, it takes a ...
1
vote
3answers
868 views

Linux Command line: recursively overwriting every file with a gzipped version?

______________ myFolder What can I replace with _____ to recursively gzip every file starting at myFolder and have the gzip be overwrite the file (rename the gzip file to the original filename)?