`gzip` (or GNU zip) is a file format and corresponding utility for compressing files using the DEFLATE algorithm. The usual extension is `.gz`.
1
vote
1answer
19 views
Why is gzip slow despite CPU and hard drive performance not being maxed out?
I have some JSON files, 20 GB each, that I want to compress with gzip:
gzip file1.json
This takes up one full CPU core, all fine.
It processes around 25 MB/s (checked in atop), my hard drive can ...
2
votes
2answers
91 views
Time to zip very large (100G) files
I find myself having to compress a number of very large files (80-ish GB), and I am surprised at the (lack of) speed my system is exhibiting. I get about 500 MB / min conversion speed; using top, I ...
0
votes
2answers
93 views
What is the difference in various commands for compressing files in linux?
What are the commands for compressing files in linux and what are the difference between them? (for example: tar, gzip, rar).
I'm working on Linux Mint 11 and doing a script for compressing files. I ...
1
vote
2answers
83 views
Is there a way to force gzip not to overwrite files on conflict?
I'm writing a script in which I'm gzipping files.
There's a possibility that I might zip a file, create a file of the same name, and try to gzip this as well, e.g.
$ ls -l archive/
total 4
...
0
votes
1answer
100 views
Between xz, gzip, and bzip2, which compression algorithim is the most efficient?
Between xz, gzip, and bzip2, which compression algorithm gives the smallest file size and fastest speed when compressing fairly large tarballs?
1
vote
2answers
94 views
gzip several files in different directories and copy to new directory
I'm working with several files that are located in different directories that I need to compress into individual .gz files. I also need to move the compressed files to a single directory while leaving ...
0
votes
3answers
54 views
What is the equivalent unix command to a Mac OSX “Compress” menu action?
When I right-click a file in Mac OSX and select "Compress 'File Name'", what is the equivalent bash or terminal command to get the same result?
Is it just gzip -9 /path/to/filename?
2
votes
2answers
438 views
.tgz file- tar: Unrecognized archive format
I'm trying to install a 10gen build of mongodb on my local mac running Mountain Lion (10.8.3):
I fetch it with curl at:
curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > ...
2
votes
1answer
117 views
Why is ZFS gzip-9 compression so much worse than actually using zip files?
I am working with some very large packet capture files (~150GB across 30 files) but because of how highly redundant packet captures are, these compress to ~7% (14.29x) of their originally file size ...
0
votes
1answer
21 views
Removind same *.tar.gz archives
I have crontab event archives to .tar.gz some folder every N hours. Finally I have collection of .tar.gz files. Now I want remove duplicating archives (created while target files stays unchanged) How ...
0
votes
0answers
18 views
Is there an older version of gzip that returns different/larger outputs?
I don't know how else to phrase this question, but I stumbled upon a file which I know from the header is gzipped (1F8B0800) but I am unable to recreate the file no matter what I try (including gzip ...
0
votes
0answers
264 views
One-click to create and extract .tar.gz files in Windows?
I'm using 7-zip latest alpha version (9.30) and I find it really inconvenient that, if I want to create a .tar.gz archive, I have to create a .tar archive first then add it to a .gz archive later.
So ...
2
votes
1answer
260 views
Shell Script to GZIP files without overwrite .gz files
I'm trying to create a shell script which receive as first parameter of a path to a folder which I would like to compress all files using gzip without overwrite the .gz files that already exist in ...
0
votes
1answer
56 views
gzip many files one by one
I have 100 files, n1.txt, n2.txt,… and I want to gzip each of them, but not in one file – finally I'd like to have 100 n*.txt.gz files.
How can I do that in Linux with Bash?
0
votes
1answer
63 views
zcat or gunzip: proceed on error
When trying to gunzip or zcat a large number of gzip files, zcat/gunzip will terminate with this error:
gzip: <gzip-file>: unexpected end of file
Is there any way I can get gunzip or zcat to ...
2
votes
1answer
237 views
When using “gzip --decompress”, the result is “gzip: MYFILE.zip: unknown suffix — ignored” on Windows
In Windows PowerShell (if it matters), I would like to decompress a zip file with gzip with the argument --decompress, but unfortunately it doesn't work. Please look at the screenshot below.
gzip ...
1
vote
1answer
683 views
What command to use to unpack a .tar.gz file in Windows?
I use to receive tar.gz files fromm colleagues but unpacking them with 7zip is not convenient as it unpacks a tar file from gz first while I usually seek to get the tar file contents (so I have to ...
1
vote
2answers
183 views
Find out the size of a .tar.gz archive in the terminal without unpacking
I have a 32GB .tar.gz archive and I'd like to know the size of the files if I unpack this compressed archive. I'd like to avoid unpacking the archive first and than use e.g. du.
Is it also possible ...
0
votes
0answers
44 views
gunzip piped to dd - performance is slow
Given the following command:
gunzip -c /mnt/mysmbshare/mybackup.gz | dd of=/dev/sdb bs=1M
Why would the machine go through cycles of a really long phase of reading data from the network (with no ...
2
votes
1answer
93 views
UNIX shell command to expand files of any compressed type
Is there any UNIX shell command to expand a compressed file which type is not known in advance?
I should be able to use this command to expand at least any of the following types of files, though the ...
0
votes
1answer
154 views
pfSense iso.gz doesn't seem to be a compressed iso image
I downloaded the latest pfSense ISO (pfSense-2.0.1-RELEASE-i386.iso.gz) and had 7zip extract it, but it just shows me the disk contents. I cannot extract the actual ISO file to burn it with the boot ...
0
votes
1answer
150 views
Compressing bigger than 1GB files seems not to work
I tried my best to compress some videos, about 1.4GB each. I tried to compress them separately, "tarring" (using tar) them and then compress, everything.
I'm on OS X Lion and I did try the ...
-1
votes
2answers
416 views
How to obtain maximum compression with .tar.gz?
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 ...
0
votes
1answer
133 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 ...
0
votes
2answers
44 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 ...
0
votes
2answers
301 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 ...
0
votes
2answers
279 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?
1
vote
1answer
94 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 ...
0
votes
1answer
184 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.
...
19
votes
5answers
614 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 ...
0
votes
0answers
75 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 ...
0
votes
1answer
79 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 ...
2
votes
1answer
389 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 ...
0
votes
2answers
208 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 ...
0
votes
1answer
239 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 ...
0
votes
0answers
66 views
Is cfosspeed filter gzip encoded http response but bypass it to a vmware?
I've cfosspeed and Windows 7 Ultimate installed. I can't load my backend when I try my user with a Typo3 cms? I always get an empty, grey screen. The html and css is loaded and unpacked. I can see it ...
1
vote
1answer
70 views
Guess compressability of a large file
I have a large file (~20 GB) and I want to quickly make an (approximate) estimate of how well it can compress. I want an program which can provide an immediate guess at the compressed filesize, and ...
3
votes
3answers
1k 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?
-3
votes
1answer
674 views
.tar file to excel conversion [closed]
Hi i was requested to convert a file by one of my client.I need to convert a .tar file to a ms excel. I gave the below steps to them but some of the fields in the content are missing. Please suggest ...
2
votes
1answer
113 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 ...
9
votes
5answers
2k 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 ...
0
votes
1answer
298 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 ...
1
vote
5answers
592 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 ...
2
votes
2answers
117 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 ...
2
votes
0answers
238 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 ...
2
votes
3answers
649 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' ...
0
votes
1answer
157 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 ...
5
votes
4answers
1k 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?
2
votes
2answers
378 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 ...
1
vote
2answers
243 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 ...

