Questions tagged [gzip]

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

Filter by
Sorted by
Tagged with
107 votes
4 answers
229k views

How to obtain maximum compression with .tar.gz? [duplicate]

The way i understand the use of tar + gzip is that tar is normally used to consolidate a grouping of files into a single file, then gzip is used to compress that file. I recently learned that tar can ...
Mario Zigliotto's user avatar
0 votes
1 answer
1k views

How to zgrep by file pattern and timestamp?

I have a list of several thousand gzip (*.gz) files that I'd like to zgrep through, but I only want to run it on files with a last-modified-timestamp on or after yesterday (11/22/2012) and that ...
pnongrata's user avatar
  • 2,822
0 votes
2 answers
186 views

Extract a section of a tgz file

I have a 28.5 GB .tgz file which was created on the command line of a Linux computer, compressing one folder and all its many many subfolders. I now want to extract a single sub-sub folder from that ....
TRiG's user avatar
  • 1,340
0 votes
2 answers
5k views

Estimate compressed file size in tar.gz

I've got a set of .tar.gz files, which are duplicity backup files (either full backups or incremental ones). I'd like to compute which directories take the most space on backups. This will most ...
liori's user avatar
  • 3,318
8 votes
3 answers
15k views

Is there a command to determine the compression ratio of a tar.bz2 file?

I have a file.tar.bz2 that's about 50GB and would like to extract it however I don't know how much space I will need. Is there a command to print the compression ratio of the tar.bz2 file?
user784637's user avatar
  • 2,025
1 vote
1 answer
465 views

Enabling GZIP compression for Firefox RSS reader

I'm trying to view an RSS feed in Firefox, but am getting the following message. Your RSS reader does not support (gzip) compression. Is it possible to enable GZIP compression in the Firefox RSS ...
dangowans's user avatar
  • 1,980
3 votes
1 answer
4k views

General Compressibility Of Various File Formats [closed]

Has anyone come across list of which file formats generally compress well (in general algorithms)? Generally, text files .txt compress well, and media-files (.mp3, .avi, etc) do not compress well. I'...
Steven's user avatar
  • 27.9k
32 votes
6 answers
10k views

Why doesn't Gzip compression eliminate duplicate chunks of data?

I just did a little experiment where I created a tar archive with duplicate files to see if it would be compressed, to my awe, it was not! Details follow (results indented for reading pleasure): $ dd ...
Guido's user avatar
  • 354
0 votes
0 answers
853 views

Is it possible to recover partial compressed files?

Of the most popular compression methods (7z, RAR, Zip, GZip) is there any of them that allows to retrieve the uncompressed data from a partial file? Imagine there is only one compressed file, and it ...
Jader Dias's user avatar
0 votes
1 answer
670 views

Winzip error / timestamp in file name related?

I receive an error when attempting to use winzip to extract a .zip file. The filename contains a colon character (used in the timestamp). Is this something that winzip does not handle? Also, the ...
user avatar
0 votes
1 answer
461 views

Looking for a gtk equivalent of ark

Does there exist a GTK equivalent (or improvement) of the Linux archiving tool known as Ark? If so, where might it be found; and if not, how well-received might be a new project which acts as a front-...
dogglebones's user avatar
2 votes
1 answer
4k views

Zip/gzip compression ratio much less in Linux than in Windows

I have a bunch of very huge files located on a Linux machine that I would like to compress and save some space. I have tried using the tar/gzip combination and I have noticed that the compression ...
ryuusenshi's user avatar
1 vote
2 answers
2k views

How do I compress a directory?

Hey guys I was wondering how would I gzip 7z tar or just regular zip a directory like this /var/Backups/Tones regular gzip won't do it because Tones is a directory and this site ss64.com/bash doesn't ...
The Nerd's user avatar
0 votes
1 answer
2k views

Why my multiparted .tar unpacs just partly? (missing files)

I have 25 .tar files like: filename.tar.001 - filename.tar.025 When I want to unpack them with cat myarchive.tar.* | tar xvf - it does, but missing files: whole .tar is 1,2 GB, but unpacked files ...
Ultra's user avatar
  • 1
12 votes
3 answers
19k views

How to gzip a directory, transfer via scp, and decompress in one command?

I frequently transfer large directories over scp and it would be sweet if I could somehow compress the directory, send it, and decompress it all in one. Is something like this possible?
macek's user avatar
  • 6,205
2 votes
1 answer
267 views

Difference between caching & gzip for static pages

I have implemented all caching methods such as, memcache, diskcache, and also tried GZIP. Is there any source I can refer to which explains the difference between them. I tried memcache it is really ...
Dwayne Johnson's user avatar
19 votes
5 answers
19k views

Fastest GZIP utility

I'm looking for the fastest gzip (or zip) utility. I have a LVM volume which 95% exists out of blank 0's, so compressing that is very easy. I'm looking for the most fastest solution, and don't really ...
Devator's user avatar
  • 1,055
1 vote
1 answer
4k views

How to gzip more than one file using cygwin [duplicate]

Possible Duplicate: How to gzip multiple files into one gz file? I am trying to gzip a bunch of files in the same folder using cgywin on windows 7. When I try gzip *.* I can't seem to specify ...
dublintech's user avatar
4 votes
6 answers
10k views

Any method to batch-compress multiple files?

Does anyone know how multiple files can be GZIP compressed? I have lots of files in a folder and I need to compress them individually. Actually, I've found a way to do it. GZIP command line binary ...
avetarman's user avatar
  • 165
2 votes
2 answers
291 views

Modern command line file compression utilities

I am frequently moving large files around from server to server. UNIXes comes with standard gzip and bzip2 compressors. However, what open options there exist beyond these, especially ones utilizing ...
Mikko Ohtamaa's user avatar
3 votes
1 answer
2k views

Google Chrome Developer Tools data transfer size

In Google Chrome when using the Network Panel to monitor files being transfered from a site, the total size of the data transfered is given at the bottom of the list. Does this figure reflect the size ...
Fergal's user avatar
  • 133
2 votes
3 answers
12k views

gzip change file ownership

Here is a case I don’t understand. I have a group bar, and this group has two users; foo and bar. I have a test.txt file, foo is the owner and bar user only can read it. However, if bar user run ...
allen's user avatar
  • 131
0 votes
1 answer
1k views

Weird GZip / Disk space issue

I'm working on a server which is using PCI Compliant partitioning rules, which means that each of the following directories has its own partition: /, /var, /boot, /usr, /tmp and /home. The server is ...
Scott Crooks's user avatar
19 votes
7 answers
28k views

Which archiving method is better for compressing text files on Linux?

In my application I need do compress of logs that are text files. Seems that bzip2 and gzip have the same compression ratio. Is that correct?
user710818's user avatar
2 votes
2 answers
2k views

Utility to cat/gunzip a list of files

Is there a commonly-installed Linux utility that will take a list of files and cat or gzip -d (==zcat) them based on whether the file is compressed? An example of where I just needed this is when I ...
benizi's user avatar
  • 537
1 vote
2 answers
874 views

Did gzip destroy my log file?

I had a rather big log file. So I thought I'd gzip it before transferring it to my pc. I did gzip bla.log which gave me a tiny bla.log.gz When I extract it using gunzip bla.log.gz I get back to ...
Thomas's user avatar
  • 179
148 votes
1 answer
270k views

How do I unzip a tar gz archive to a specific destination?

I want to unpack a .tar.gz file to a specific directory. The archive file is in /root/Documents. I want to unzip it into /root/Desktop/folder. The folder structure in zipped file should be preserved ...
alwbtc's user avatar
  • 2,955
1 vote
2 answers
2k views

Gnuplotting gzipped files

I would like to use a command like plot 'datafile.gz' u 1:2 in gnuplot for a data file that is gzipped. Of course gnuplot does see that the file is gzipped and unzip it for me. Is there a way to ...
pythonic metaphor's user avatar
42 votes
3 answers
67k views

How do I use 7-Zip CLI for Windows to create .tar.gz archives?

How can I use the 7-Zip CLI (7za.exe) on Windows to create .tgz archives, as I use tar zcvf archive.tgz source_files on Linux?
f.ardelian's user avatar
4 votes
2 answers
1k views

Is it more efficient to rsync uncompressed text data or the same data gzipped?

Rsync only copies over the changed parts of a file. So if I have a large data dump, for example a SQL database in text format, and I want to copy it to my local machine using as little bandwidth as ...
Mark Theunissen's user avatar
6 votes
1 answer
6k views

gzip - Extracting without deleting zip file

Right now I am running an extract from a .gz file using the Windows gzip.exe. However when I decompress the file, it kills the .gz file and leaves me with the extract file. For example if I run this ...
judda's user avatar
  • 226
7 votes
2 answers
21k views

How can I compress a large file into smaller parts?

I'm looking for a way to compress a large file (~10GB) into several files that wont exceed 150MB each. Any thoughts?
Ran's user avatar
  • 287
2 votes
2 answers
1k views

Excluding Path While Compressing with TAR/GZ

I am compressing list of files like this: tar cvzf mycompress.tar.gz /dir1/dir2/file1.txt /dir1/dir2/file2.txt However when I uncompressed them the directory /dir1/dir2/ is still preserved. How to ...
neversaint's user avatar
44 votes
3 answers
128k views

Howto pipe: cp | tar | gzip without creating intermediary files?

Can anyone tell me if it's possible to pipe | this without having to create a physical file anywhere between A and B.tar.gz? This is what I'm trying to do: File A Rename A to B Tar B.tar gzip -9 B....
user avatar
0 votes
1 answer
2k views

Merge tar files in Windows Server

In my server(windows server) I have 3 tar files. (file.tar, file.tar-2, file.tar-3). I want to merge those files. (Those are generated by some server tool). So I am looking for a tool to merge ...
leo87's user avatar
  • 123
1 vote
2 answers
4k views

GREP and TAR all files/directories matching X

I would like to find and gzip/tarball contents of all the folders matching wordpress in my directory, but I am having trouble trying to get the command to work, I thought it was something like find *...
ehime's user avatar
  • 241
2 votes
1 answer
106 views

Which is better: using flags, or pipes?

As with many things in the *nix world, there is more than one way to generate .tar.gz files. Typically, I use the following: tar zcf /path/to/dir.tar.gz /path/to/dir However, I have seen the ...
warren's user avatar
  • 10.1k
19 votes
2 answers
78k views

How to GZIP all the files or a list of files from some path?

I know that gzip compress a file, but I would want to know. How to compress a list of files, each file in their own GZIP file ? I need to use the list of a folder: ls log.2011 And for each file ...
MadMad666's user avatar
  • 398
2 votes
2 answers
866 views

Unzipping a huge file stalls the server

I want to extract a huge .tar.gz file but when I do extract it stalls the server. The server is write heavy and extracting seems to choke the disk. Is there a nice way to extract without stopping the ...
ForeverConfused's user avatar
27 votes
6 answers
8k views

How can I evaluate the best choice of archive format for compressing files?

In general, I've observed the following: Linux-y files or tools use bzip2 or gzip for distributing archives Windows-y files or tools use ZIP for distributing archives Many people use 7-Zip for ...
user541686's user avatar
  • 23.9k
226 votes
6 answers
280k views

How to specify level of compression when using tar -zcvf?

I gzip directories very often at work. What I normally do is tar -zcvf file.tar.gz /path/to/directory Is there a way to specify the compression level here? I want to use the best compression ...
Lazer's user avatar
  • 17.7k
2 votes
1 answer
128 views

My internet connection doesn't send the Accept-Encoding header

Whatever computer is connected to that network (router is Netgear DGN2200) and whatever program sends a http request, servers never get the Accept-Encoding header from me. For example, if I go here: ...
Zippo's user avatar
  • 123
21 votes
2 answers
46k views

What is the fastest compression method for a large number of files?

I need to compress a directory with around 350,000 fairly small files that amount to about 100GB total. I am using OSX and am currently using the standard "Compress" tool that converts this directory ...
Spike's user avatar
  • 313
24 votes
7 answers
61k views

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. >...
Lord Loh.'s user avatar
  • 1,024
3 votes
2 answers
14k views

can gunzip work on file without a suffix?

Is there a way to gunzip a file that isn't ending with a .zip even though I know for a fact the file is indeed a zip?
jldupont's user avatar
  • 6,724
78 votes
3 answers
83k views

How to know if a site is gzipped?

I am accessing some web sites which are really really slow, and I would like to know if those sites are gzipped. Is there an easy way to find this out?
yazz.com's user avatar
  • 3,321
3 votes
3 answers
2k views

Control gzip compression rates while archiving files with tar?

I have a script which periodically backs up a directory using the command "tar -czvf [name] [directory]" but my problem is that the script has recently been putting a lot of stress on the server (...
user avatar
8 votes
1 answer
7k views

Critical gzip mistake - how to undo 'gzip -r ./'

So I tried to make a gzipped backup of my entire directory structure, but I inadvertently issued the command gzip -r ./, hoping to add all files and folders to a single gzip archive. This obviously is ...
veerman's user avatar
  • 81
3 votes
2 answers
555 views

What type of data is compressed more effectively by bzip2 than gzip/zlib?

I'm comparing compression functions, and I'm surprised by what I'm seing. Maybe I'm doing something wrong, but everything I've tested has been more compressed by gzip than bzip2! I was under the ...
Jeremy's user avatar
  • 1
5 votes
1 answer
3k views

Decompressing these .gz files gives strange/unexpected results, can you get it working?

I have a collection of mailing list archive files all gzip'd, they're in a nested directory structure that starts with what appears to be a blank folder/jargon name. The files are here: http://lists....
Nick Josevski's user avatar