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
0
votes
1answer
92 views

Perform operations on the output of find command with -exec options

I want to perform operations on the files found by the find command which already has a -exec option. find . -type f -exec zgrep -li "4168781103" {} + Output: ./results/...
0
votes
1answer
81 views

How to make Dovecot maildir format emails be gziped using zlib

I activate compression plugin by set following on Dovecot: # /etc/dovecot/conf.d/20-imap.conf (...) protocol imap { mail_plugins = $mail_plugins zlib } # /etc/dovecot/conf.d/90-plugin.conf (...) ...
1
vote
0answers
118 views

“gzip --version” gives “Abort trap: 6” in macOS

I found that doing gzip --version in the terminal on my Mac just gives output Abort trap: 6. I came across this because it appears to cause another program to exit when it searches for the installed ...
0
votes
0answers
33 views

Nginx GZIP not working after all config

I have configured my nginx.conf like that: gzip on; gzip_disable "msie6"; gzip_vary on; gzip_comp_level 6; gzip_min_length 256; gzip_types text/plain text/css application/json application/x-...
0
votes
1answer
64 views

gzip: CHARTEVENTS.csv.gz: not in gzip format

I'm trying to expand a file named CHARTEVENTS.csv.gz by using guzip CHARTEVENTS.csv.gz , but always I have this error gzip: CHARTEVENTS.csv.gz: not in gzip format . can any one tell me what is the ...
0
votes
1answer
30 views

how to send the decompressed output of archives to standard output?

When you decompress a gzip archive with gunzip without any arguments, the archive disappears, and you're left with the decompressed file in its place. However, if you use the -c option, the archive ...
0
votes
1answer
93 views

Extracting a file in solaris

I'm try to extract a file in solaris to a folder. I have tried following combinations but no luck. gunzip -c jdk-8u211-solaris-sparcv9.tar.gz > /opt/java/jdk8.2.11 I'm getting a is directory ...
0
votes
1answer
46 views

Serving tar.gz file through AWS Cloudfront?

I would like to keep things tidy on the S3 bucket where my website's assets live. Currently I am uploading all assets to S3, as part of the CI/CD pipeline, this has got a bit messy since generated ...
0
votes
0answers
72 views

gz file corrupted while transfer

I have huge gz files generated in linux machines and everyday night there is a script running to move files to remote network storage which is also linux host with terabytes data. The problem is, I am ...
2
votes
1answer
1k views

MongoDB, Using mongorestore on an .agz file

I am using MongoDB 3.6 and am having trouble understanding how to use mongorestore on an .agz file. If I specify the below, then I get an error saying Failed: error connecting to db server: no ...
0
votes
2answers
116 views

How to restore the original file.gz after running a gunzip -f file.gz?

The default behavior of gunzip is to delete the .gz file after it decompresses. There's a way to restore the original file from the decompressed version on Mac OS?
8
votes
1answer
1k views

While trying to see the content of a zipped file, I only get information about the zipping process

In Ubuntu, installed on Windows Subsystem for Linux, I want to see the content of a zip file, using gzip --list. I expected to see a list of included files like this: FileName ratio File1 ...
1
vote
1answer
1k views

How do modern browsers deflate .tar.gz files?

Assuming the server is set up correctly, modern browsers are able to automatically decompress .gzip files when they are downloaded. Is the same true for a .tar.gz file? For example, say you have an ...
0
votes
0answers
42 views

Encrypting and password protecting archive using gzip [duplicate]

I want to encrypt and password protect my archive file using gzip command. Is there any options in gzip command for achieving this like 7zr -mhe and -p options?I also want my password to be appended ...
0
votes
2answers
183 views

Extract folder inside large gzip file in windows

I have a 200 gb tar.gz file I need to extract one folder inside this file. I know exact location of the folder need. Is there any way to do that, any third party tools, or any power shell commands ? ...
0
votes
1answer
95 views

Compress and provide single-file access to 10 million files [closed]

I have ~10 million small text files and I would like to solve the following tasks: compress all the data; put it all into 1 file to transfer over the Internet; be able to access each single file ...
2
votes
0answers
248 views

Why is my .tar.gz larger than the sum of the separately compressed files in it?

I observed the following situation which is somewhat unexpected to me: I have a csv file and a corresponding txt file. Uncompressed, their sizes are 375MB and 5KB. When I compress the csv file ...
2
votes
2answers
2k views

Not enough disk space to unzip 50 GB file on Ubuntu 16.04: Can I extract and reduce zip file size at the same time?

I have a 50 GB zip file, which contains roughly 50.000 jpg images. The jpgs are, unzipped, around 55 GB. I am on Ubuntu 16.04. But I only have 70 GB disk size on that system. So I get a disk error in ...
1
vote
1answer
1k views

DD image smaller than drive copied

I took a backup of my server's OS disk through a live USB. Using the command: dd if=/dev/sda bs=512 count=(30 gb worth of sectors) conv=noerror,sync status=progress | gzip -c > /path/to/removable/...
2
votes
1answer
7k views

How do I use 7-Zip GUI for Windows to create .tar.gz files?

How can I use the 7-Zip GUI on Windows to create .tar.gz files?
1
vote
1answer
261 views

Why does gzip -c give different results than gzip?

I am writing unit tests for some code and found that a simple gzip is causing a difference in my results. Upon further investigation I found that gzip gives a different .gz file than gzip -c does. Why ...
1
vote
1answer
605 views

Gzip -c over pipe matter?

I saw sometime 2 ways of writting: with and without -c Do the 2 following case output the same and have equal speed ? mysqldump -u root dbname | gzip > test.sql mysqldump -u root dbname | gzip -c ...
0
votes
0answers
48 views

Restoring file after zipping, when it become binary [duplicate]

I zip my python file into file.py.gz on Linux. After that my file become something like a binary file. When I am open file with vim, on the bottom was a text " [noeol] [converted]. I want to restore ...
0
votes
0answers
50 views

How to view specific path inside tar.gz?

tar -tf file.tar.gz let's me view inside the whole archive. How do you view a specific path without viewing the whole thing? E.g., I want to view only /path/foo/ Update: This command almost works ...
0
votes
1answer
353 views

Can I decompress a .gzip file with tar?

I downloaded a .gz file with anonymized Census data and around 1 GB compressed. I am unable to inspect it with tar: $ tar -tf census.csv.gz tar: Unrecognized archive format tar: Error exit delayed ...
0
votes
1answer
137 views

MNIST Dataset - .gz files do not contain “raw” bytes

I am trying to use the MNIST dataset. However, when I download the .gz image file and then unzip it, I get a lot of "compressed" bytes. Here's a bit of it: 'Tπüó<$fi˛˛˛˛Ò∆∆∆∆∆∆∆∆™4CrHr£„˛·˛˛˛˙²˛...
1
vote
1answer
503 views

Append to compressed log

There is a couple of z-utilities (zless, zcat), which are able to read contents of zipped file in transparent manner. Is it possible to append to compressed log file (in either format, not ...
0
votes
1answer
717 views

simple way to extract tar.gz in-place with no hard-drive overhead

I'm working with a tar.gz file (196 GB). This file needs to be extracted (240 GB) in place, and I would like the total disk usage not to go over 240 GB during the process (or close to it as possible). ...
1
vote
1answer
374 views

Looking for the best way to backup and restore a directory of sparse files

We have a directory of sparse files (du returns 240M for one of these files; ls returns 960M). When we copy one of these files over to S3, we end up uploading the entire 960M, and on downloading ...
0
votes
0answers
596 views

AWS Redshift failed to inflateinvalid or incomplete deflate data while inserting a zipped csv file

I have a zipped csv file which is a part of a huge file, and extracted from the original huge file using the following command: gunzip -c myFile.csv.gz | head -n 500000 > myFile.csv.gz_p1 after ...
6
votes
1answer
20k views

“gzip: stdin has more than one entry--rest ignored” and “gzip: tmp.gz has more than one entry — unchanged”

I have a certain file named tmp.gz. When I try to decompress it using gzip -d, I get an error-message that it has multiple entries: $ gzip -d tmp.gz gzip: tmp.gz has more than one entry -- unchanged ...
2
votes
2answers
2k views

Md5 checksum different after gunzip and gzip

I accidentally deleted a handful of gzipped files from a folder. Thankfully, I had uncompressed them in a different location, and am in the process of restoring them. I had the md5 checksums for the ...
5
votes
1answer
4k views

How to use gzip or gunzip in a pipeline with curl (For binary gz files)

I am using curl to download a file using the following command. curl -O https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz I want to unpack it in a pipeline in the ...
1
vote
2answers
3k views

Fast compression in 7z format (like zip or gzip)

In short: can the Deflate compression be used only with the zip format (-tzip) in 7zip? I want to archive a big directory (hundreds GiB) from a disk to another, while keeping I/O speed the same or ...
8
votes
1answer
4k 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?
1
vote
1answer
6k 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
1
vote
1answer
102 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 ...
0
votes
1answer
130 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 ...
1
vote
1answer
326 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 -...
1
vote
1answer
173 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 ...
2
votes
1answer
217 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 ...
0
votes
0answers
24 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 ...
4
votes
0answers
696 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 ...
2
votes
2answers
316 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 ...
1
vote
1answer
437 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 ...
2
votes
3answers
5k 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?
1
vote
1answer
453 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 ...
0
votes
1answer
531 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?
-1
votes
2answers
276 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....
0
votes
1answer
299 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 ...

1
2 3 4 5