`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

-1
votes
2answers
23 views

gzip unix command with tar command

I want to zip more than one file using gzip, but when I unzip it I should get multiple files. I tried tar with zip but tar created extra folders that I don't want. The files I want to zip are ...
-1
votes
0answers
12 views

Why does GPG require you use redirection to handle large archives?

A problem a lot of people have run into with GPG is that if you try to decrypt a large archive with, e.g., gpg --decrypt archive.gz.gpg > archive.gz you may receive an error such as gpg: fatal: ...
0
votes
1answer
24 views

Decompress all gz files in a tree

I am working on an Ubuntu 14 server. Trying to create a tar.gz backup of my website, I accidentally gzipped every individual file in my /var/www/ directory, recursively. Now the whole tree consists ...
0
votes
1answer
21 views

Tar Archive All Files with Extension

I'm using this command to archive all PHP files: find -name "*.php" | sudo tar -zcpvf my-archive.tar.gz -T - It works great, except that the output is like this: ./file1.php ./file2.php ...
0
votes
0answers
35 views

How can I restore a MySql database dump direct from S3?

I have a gzipped database backup stored on S3 and would like to restore it to MySql without having to first download it due to disk space constraints. I tried the two commands below but got gzip: ...
0
votes
1answer
24 views

Apache2 with mod_deflate serve bad css and js

Problem I am having is with css and js files served as file.css.gz and file.js.gz on one of enabled sites. The content is served as this gibberish: û—Û6’0ú»ÿ ...
1
vote
0answers
26 views

Gzip'd tar archive Spanning Multiple Disks

Very similar to (How to create tar archive split into, or spanning, multiple files?), but specifically I would like to simultaneously: tar and compress a 10 tb directory, having insufficient local ...
3
votes
1answer
49 views

Linux pv | gzip doesn't delete original file

I'm pretty new to unix so go easy. Normally gzip file replaces file with file.gz (which i'm guessing is: create file.gz then rm file). I have some rather large files I'm compressing and I like to ...
4
votes
2answers
126 views

Archive (.tar.gz) Corruption

I've got a .tar.gz archive that has definitely suffered some kind of corruption. The data inside the archive is obviously very precious to me and I'd really like to get my hands on as much as ...
1
vote
0answers
14 views

Simultaneously enable gzip and $STR_REPLACE in CGI in apache

I have a code in my CGI script for text replacement (for example replace 'red' with 'blue') $STR_SEARCH='red' $STR_REPLACE='blue' I am using the below code in .htaccess for enable replace function: ...
0
votes
0answers
17 views

gzip archive with damaged begin

How to recover as much as possible gzip file content when begin of this file is damaged? Is it possible? I tried commands gunzip -c , zcat, openssl zlib -d etc. Unfortunately that commands doesn't ...
2
votes
1answer
44 views

Change the directory structure in tar.gz without extracting it

I have a tar.gz file that has the following structure when I extract. /dir1/dir2/dir3/many_text_files(.txt) I would like to change the structure as dir3/many_text_files(.txt) A simple solution is to ...
0
votes
2answers
58 views

How to zip an entire folder via gzip?

I am trying to zip an entire folder. There's this -r command to zip a folder recursively. Now this is good to zip all the files in a folder, but my predicament is I want to zip the folder in it's ...
0
votes
1answer
27 views

Ignore Zeros Not Working When Trying To Open Tar

I have a backup file from my system admins called backup.tar.gz. They mentioned that I need to use the --ignore-zeros/-i command when unzipping the file. However when I run the command as suggested ...
2
votes
1answer
39 views

How to Tar/GZip just the files folders in the data directory?

I have a bunch of folders and files in /usr/local/bin/data that I want to tar.gz. I have a bash script that sets the source folder to backup src='/usr/local/bin/data/* When I open up the .tar.gz ...
2
votes
1answer
140 views

Using dd to backup disk to same disk

I've tried using dd to back up my computer's hard drive, but I met with some rather confusing results. I've seen on multiple sources (e.g.: ...
1
vote
0answers
24 views

GZIP file system code for Linux?

GZIP allows one to use file system codes. See page 7 of RFC 1952. What is (are?) the GZIP file system code(s) to use for Linux?
0
votes
1answer
43 views

using compressed (.gz) files with command line scripts expecting uncompressed files

In order to save disk space, I've gunzip-ed a lot of my files that I regularly use. What is a best-practice way to still use the .gz version of these text files with, say, python scripts? More ...
1
vote
0answers
39 views

Unzipping files downloaded from the Arxiv server

I want to download the source Tex files (not the pdf) of this document: http://arxiv.org/abs/1306.0322 After downloading here, I get a weird file with the ".0322v3" (the second part of the doc code) ...
0
votes
2answers
116 views

Can a tar.gz file contain malicious code? Is a Mac vulnerable to such a tar.gz?

Can a tar.gz file contain malicious code that is similar to ZIP file? On a Mac particularly? Edit: Oops, I meant to ask the process of opening/untar a tar file on the Mac. Not the contents of the ...
3
votes
1answer
74 views

Ctrl-C'd an in-place recursive gzip - is this likely to have broken anything?

So, today i was trying to zip up a large folder (that has a large nested set of subfolders), in linux. I did: gzip -r bigfolder bigfolder.gz and after it had been going for a couple of minutes I ...
2
votes
0answers
60 views

view zip file content in tree command style

I am seeing the zip file content using unzip -l files.zip | less but it outputs in ls style , is it possible to to display output in tree command style
2
votes
2answers
951 views

Chromium: prevent unpacking tar.gz

The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using wget with the same URL, it shows: $ wget http://mydomain/dir/file.tar.gz ... HTTP ...
0
votes
0answers
134 views

Composer Install .tar.gz

Trying to install node.js via composer (for automation). "repositories": [ "type": "package", "package": { "name": "nodejs/nodejs", "version": "0.12.6", "dist": { ...
0
votes
4answers
179 views

How to open tar gz file created using tar piped to gzip

I wanted to generate a tar gz file with the highest compression level, and I followed the solution from http://superuser.com/a/546509/461740: tar cv /path/to/directory | gzip -9 > file.tar.gz ...
1
vote
1answer
211 views

How do I use HTTrack to download gzipped files from URLs with accented characters?

I am downloading a site with HTTrack with spotty results. Several directories return 2 or more versions of the same HTML file. These duplicates in any given directory may include: a file named ...
0
votes
1answer
56 views

Unix gzip more than one file at once

I have come to the end of my research with unix:> I'm new with unix and its enviroment, so i need your help guys. Long story short, i have a housekeeping script, which runs daily/weekly (it doesnt ...
0
votes
1answer
256 views

Gzip compression on Apache using .htaccess

As per http://gtmetrix.com/enable-gzip-compression.html i'm trying to enable gzip compression on apache webserver adding code mentioned below in .htaccess, but it's not working ; can you please ...
0
votes
1answer
55 views

Incorrect size of image file made with dd and gzip?

In the past I made a backup of a partially full partition with dd if=/dev/sda1 | gzip -5 > file.gz. Some time later, when a free space on partition was smaller I made an image file again with the ...
3
votes
1answer
265 views

Can't extract tar.gz file from Apache

I'm trying to do install manifoldcf on Ubuntu. I downloaded the file - apache-manifoldcf-1.9-src.tar.gz - directly from Apache (and I've tried different version as well with the same results). Using ...
0
votes
2answers
198 views

Decompress logged GZIP binary data

In an effort to verify my app was sending back and forth with my server correctly, I had run tcpdump -w ~/capture.txt -s 0 port 80 on a server with proxy sitting in between to capture all ...
5
votes
2answers
2k views

What is the correct MIME type for a tar.gz file?

What is the correct MIME type for a tar.gz file? I've searched around and found several values being used, including: application/x-gzip application/x-gtar application/x-tgz But I could find no ...
0
votes
0answers
65 views

Need to create .tgz file in Windows

I need to create a .tgz file - NOT a tar.gz, a .tgz specifically - in Windows. I've tried 7zip, Peazip, and ProgramArchiver, but they all create .tar.gz files. I've also tried running 7z from the ...
0
votes
1answer
174 views

Cannot unzip xymon-4.3.18.tar.gz; “No such file or directory” error

I have a problem unzipping an archive. ubuntu:~% sudo gzip -dc xymon-4.3.18.tar.gz | tar xf - gzip: xymon-4.3.18.tar.gz: No such file or directory tar: This does not look like a tar archive tar: ...
0
votes
1answer
409 views

dd , pv , gzip and exclude directory, possible?

Is it possible to do the following: dd if=/dev/hdx | pv | gzip > /path/to/image.img\ --exclude=/temp --exclude=/lost+found --exclude=/proc --exclude=/path/to/image.img So I want to make a backup ...
3
votes
2answers
142 views

How to tell of a GZip file is still being written while being copied

I am getting a gzip file in a path. Input Folder Path: <server>/input_gate I want to check whether the GZIP file I am getting in this folder are valid? I have used the following command. It ...
3
votes
2answers
162 views

Is Gzip supposed to honor original filename during decompress?

This question stems from a Crypto++ library question on Stack Overflow: How to add filename to archive if compressing using Gzip class?. Gzip, as specified in RFC 1952 has an optional field for the ...
1
vote
1answer
140 views

How to extract single file from large tar/tar.gz file

What I want to do is to extract a single file from a huge tar file, instead of extracting the whole tar. I am using RHEL 6.4 I Googled it and tried the following: tar --extract --file=some.tar ...
1
vote
0answers
47 views

canot restore disk image with dd (target part filled with zero)

I have a RAID0 disk before, now I want change the size of it. From the manual, the only way is backup data, delete RAID, re-create with new size, and restore data. now I have many old 2.5" hdd, each ...
3
votes
1answer
276 views

Not sure gzip has decompressed the whole file

I am decompressing a list of files using gzip: At any time it skips from one file to the next, I read (I am using the verbose option): star_60out.txt.gz: 91.0% -- replaced with star_60out.txt or ...
0
votes
1answer
193 views

extracting multiple .gz files, and printing the name of the extracted file

I would think this is easy but I'm blocking… I have a directory with a series of log files (from minecraft server…): 2014-09-28-1.log.gz 2014-09-29-1.log.gz 2014-09-30-1.log.gz 2014-10-01-1.log.gz ...
1
vote
2answers
148 views

Gzip thousands of files efficiently in a single pass

I want to gzip the contents of a couple of thousand of tiny files into a single file. While I could do it with something like for file in $(find . -iname 'pattern'); do; cat $file | gzip - >> ...
0
votes
1answer
61 views

can't open .gzip archives retrieved with wget

I'm trying to download the content of a directory hosted on a server using wget in a cygwin terminal. I have no problem getting the files but they are all .gz archive and once downloaded they are ...
0
votes
1answer
57 views

how to extract lots of gz files in windows

I have 36,348 .gz files. I need to extract them all the same directory. In unix I would use gunzip and so forth from the shell. How would I do it on my windows 7 machine? I can't even get winrar to ...
1
vote
1answer
392 views

Running find…exec tar czvf only archives one file…need all files

When attempting to run find . -iname "*.gz" -mtime +7 -exec tar czvf all_gizip_$(date +%Y-%m-%d).tar.gz {} \; I get the list of files ./corosync.log-20140620.gz ./corosync.log-20140618.gz ...
1
vote
1answer
76 views

How to revert a “gzip -r folder/” command?

I accidentally compressed all the files using the Gzip method which compresses all the files (not directories) individually, replacing the uncompressed files with the .gz compressed files. How can I ...
67
votes
2answers
10k views

Why is piping 'dd' through gzip so much faster than a direct copy?

I wanted to backup a path from a computer in my network to another computer in the same network over a 100 Mbit/s line. For this I did dd if=/local/path ...
0
votes
1answer
1k views

How to compress a large file to many smaller zip files with defined size?

I have a very large file, e.g. 100GB, and I want to compress it to many smaller zip file, with each file cannot larger than 1GB, what would be the most suitable commands to do it? remark: I want to ...
0
votes
0answers
166 views

GZIP corruption with big files?

I came across a weird behavior: gzip v1.5 - Fedora r18 A file -rwxrwxrwx. 1 root root 3892576256 Apr 28 11:29 vm.qcow2 Initial checksum: md5sum vm.qow2 954c5461468d68daed3cef6a7b66bd8f vm.qcow2 ...
1
vote
1answer
173 views

Need help in the shell script - gunzip and file command

This is on Ubuntu 12.04. I have a custom webkit based application where "browser" saves bunch of cache files. When triaging the problems, I have to inspect the cache. The cache directory holds many ...