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
10 votes
1 answer
11k views

Is .gz the same as .gzip?

I'm decompressing a file with a .gzip extension and then re-compressing it using 7Zip. When re-compressed though it has a .gz extension. Are a .gz and .gzip extension the same thing?
Max's user avatar
  • 203
2 votes
1 answer
17k views

Create a tar.gz from an image file (Linux or Mac) [closed]

Hi I have an img of a custom linux distro and I would like to convert it to a tar.gz file. (I am using Mac or Linux OS) What is the most straight forward way to do it? Thank you
Jibrilat's user avatar
  • 151
1 vote
1 answer
117 views

Is running gzip compression on a directory tree already in the process of being gzip'd safe?

Can I simultaneously compress the same directory tree using tar -zcvf (gzip) (e.g. in two separate shells, one after the other but the second one running before the first one finished) with two ...
hello_there_andy's user avatar
0 votes
1 answer
171 views

Drobo FS on Fedora tar backups fail w Input/output error, Child returned status 1

We're been running tar/gzip backups for a while on Fedora 25 Linux servers and we'd like to make sure aquota.user files get backed up. From the comments in the drobo-backup.conf file here's what we ...
RobbieTheK's user avatar
1 vote
1 answer
620 views

Reading ZFS snapshots from tape is slow

I backed up my a zfs snapshot to tape using zfs send tank/vertex@2017-01-20 | pv -cCTrbB 1g | pigz -c | pv -cCTrbB 1g | dd of=/dev/nst0 bs=1M and then read it back using dd if=/dev/nst0 bs=1M | pv -...
chew socks's user avatar
1 vote
2 answers
539 views

Compare compression: gzipping individual files vs. gzipping tar of same files

Consider a hypothetical archive format that does the following under the covers, given a list of files to pack: gzip each file individually Tar the gzips together Contrast this with traditional tar ...
arifogel's user avatar
2 votes
1 answer
440 views

Gzip huge directory into separate .gz files for ssh transfer

I have a directory of ~200.000 .npy files with a total size ~100 gb. All files are stored directly below the main directory (i.e. there's no sub-directories). I need to transfer the directory and ...
pir's user avatar
  • 301
0 votes
0 answers
46 views

how much time takes to check the compressed file is available or not in that directory while using gzip compression in apache?

I am using static compression.(i.e.)In my application, When xml is generated, then I also creates its gzipped version and place near in it. I am having little confusion in it. When clients sends ...
Arun kumar Kalaiarasan's user avatar
5 votes
0 answers
2k views

What is the difference in gzip compression levels?

Have been using gzip for a few years and usually I always gzip -9 out of habit as it is the highest level of compression. I understand that lower levels means less compression but quicker compress ...
IT_User's user avatar
  • 151
2 votes
2 answers
503 views

Optimizing gzipped files for block-level deduplication

I have about 100TiB of compressed gzip data on cloud volumes. On my way to run a block-level dedup (duperemove for btrfs) I find that it was compressed without -n, which causes block-level difference ...
Ira's user avatar
  • 323
1 vote
1 answer
701 views

How to enable Opencl for gzip?

gzip is a widely used lossless compression program. I have installed gzip and the version is as follows gzip 1.2.4 (18 Aug 93) Compilation options: DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H How to ...
Vanns's user avatar
  • 187
2 votes
3 answers
12k views

Ungzip all gz files in Windows

I have many .gz files and I want to unzip all of them keeping their name and folder nesting. How can I do this with Windows? Does 7zip have functionality that could complete this?
Tobia's user avatar
  • 2,261
1 vote
1 answer
2k views

Download very large files with HTTP

I'm downloading the PlaceNet compressed database of place images (~132GiB). Unluckily the downloaded file is corrupted. I have tried several times, each time the extraction is stopped at different ...
Lenik's user avatar
  • 18.3k
0 votes
1 answer
976 views

Tar & save the output of a command

I want to tar the output of a command, say cat hello.world, to a compressed tar file. I don’t want to save a temporary file and later tar it manually. How can I do this?
ather05's user avatar
-1 votes
2 answers
314 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 cp1....
Nitin's user avatar
  • 1
0 votes
1 answer
1k 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 ...
Andreas I's user avatar
1 vote
1 answer
727 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 ./file3.php ...
GTS Joe's user avatar
  • 251
1 vote
1 answer
2k 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: ...
KalenGi's user avatar
  • 147
0 votes
1 answer
304 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ú»ÿ ­sæÚNZ²H½ZΉ¿yìN&9Iv¿yå5sï¡H¨Å˜5$Õïõ÷·...
NexusStar's user avatar
  • 101
1 vote
0 answers
791 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 ...
Joebocop's user avatar
  • 123
5 votes
1 answer
8k 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 ...
danielr's user avatar
  • 65
4 votes
2 answers
3k 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 possible....
Mythical Juggernaut's user avatar
1 vote
0 answers
64 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: ...
alex body's user avatar
0 votes
0 answers
64 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 ...
Znik's user avatar
  • 366
3 votes
1 answer
3k 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 ...
santhosh's user avatar
  • 133
0 votes
2 answers
5k 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 ...
Ritesh Bhakre's user avatar
1 vote
1 answer
776 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 ...
user avatar
2 votes
1 answer
130 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 ...
user1052448's user avatar
4 votes
1 answer
2k 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.: http://www.backuphowto.info/linux-backup-hard-disk-clone-dd,...
Ben Sandeen's user avatar
1 vote
0 answers
105 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?
jww's user avatar
  • 12.1k
0 votes
1 answer
406 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 ...
Constantino's user avatar
4 votes
1 answer
1k 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) ...
andandandand's user avatar
1 vote
2 answers
6k 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 ...
EmilyJ's user avatar
  • 489
3 votes
1 answer
962 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 ...
Max Williams's user avatar
  • 2,989
3 votes
0 answers
1k views

view zip file content in tree command style [duplicate]

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
Ciasto piekarz's user avatar
6 votes
2 answers
7k 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 ...
Thomas S.'s user avatar
  • 783
5 votes
1 answer
4k 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": { ...
Daniel W.'s user avatar
  • 1,982
0 votes
4 answers
5k 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 https://superuser.com/a/546509/461740: tar cv /path/to/directory | gzip -9 > file.tar.gz ...
FBB's user avatar
  • 1
1 vote
1 answer
1k 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 ...
Matthew S's user avatar
  • 579
0 votes
1 answer
972 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 ...
Justas's user avatar
  • 1
1 vote
1 answer
1k 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 ...
Pawan Mude's user avatar
0 votes
2 answers
961 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 ...
To-la120's user avatar
3 votes
1 answer
4k 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 ...
Rob50's user avatar
  • 73
0 votes
2 answers
1k 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 requests. ...
hackartist's user avatar
71 votes
2 answers
91k 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 ...
Lily Finley's user avatar
0 votes
0 answers
4k 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 ...
Elennare's user avatar
0 votes
1 answer
1k 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: ...
Ales Krek's user avatar
1 vote
1 answer
2k 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 ...
magamig's user avatar
  • 186
3 votes
2 answers
1k 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 ...
Raj's user avatar
  • 133
6 votes
2 answers
8k 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 ...
jww's user avatar
  • 12.1k