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`.
48
questions with no upvoted or accepted answers
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 ...
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) ...
2
votes
0
answers
1k
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
1
answer
2k
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). ...
2
votes
2
answers
505
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
1
answer
435
views
dd + gz = Even Worse /// Mount Valid Partition of Whole-Disk dd Image
I've got a 250G backup of a whole disk via dd, which was then piped to gz, thanks to the advice of one of my -genius- friends.
Looks like the EFI boot partition was corrupted (pretty sure it's an ...
1
vote
0
answers
301
views
gzip -d introduces wrong ASCII characters
I am struggling with the following command: gzip -d /path/to/compressed.sql.gz
I always run it inside a container from the same Docker image. It works fine on my laptop as well as in our production ...
1
vote
1
answer
2k
views
Transfer a directory over ssh with sudo
I am trying to transfer a directory from a remote server(CentOS) to my local machine(Ubuntu) over ssh. There are two users : A and B. User A can ssh into remote server and has sudo access. User B owns ...
1
vote
0
answers
332
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 ...
1
vote
1
answer
703
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 ...
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: ...
1
vote
0
answers
802
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 ...
1
vote
0
answers
65
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:
...
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?
1
vote
0
answers
90
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 ...
1
vote
2
answers
184
views
How to extract such a compressed file?
I have been asked to extract a ZIP file having in it 3 tar files and each tar file contains around 3000 gz files.
I had to extract the main ZIP file first then extract the tar files second then ...
0
votes
0
answers
157
views
If a .gz file was downloaded can it demage my computer or steal data?
I was unaware that I was on a data phishing landing page (it was very clever, I haven't seen anything like this before) and I downloaded a .gz file. After that it started to become suspicius so I ...
0
votes
1
answer
48
views
Mounting a directory of zipped files for direct unzipped access
I have a directory tree with LOTS of .gz files. I once saw a way to mount it (via FUSE I think) so that I could see all the files directly (i.e. unzipped) under another directory.
I've been searching ...
0
votes
0
answers
98
views
Why are not all my files included when I gzip a directory?
I know this is a question that has been asked before, for example here Recursively count all the files in a directory,
but this is driving me crazy. Let me explain:
I have a directory called "...
0
votes
0
answers
819
views
Windows tar compress command doesnt appear to include subdirectories
I am trying to compress all files and folders in the current folder (on my Windows 10 environment) so I can extract them on my Raspbian environment. Im using a Powershell script with the tar command
...
0
votes
2
answers
1k
views
Can one extract the files in a .tar.gz and upload them individually onto cPanel?
I am in the process of migrating my website from Bluehost to a different hosting company. I downloaded the entire backup of the cPanel (61 GIG) successfully, but uploading files is incredibly much ...
0
votes
1
answer
426
views
How do I maintain integrity on zip and unzip?
I'm taking a dd of a drive and trying to share it with a friend. It's rather big after dd (~8gb). When I tar -czvf my-image.img I can get it down to ~1.5gb. However, if I try to test unzip it, I see ...
0
votes
0
answers
930
views
Unable to decompress file with gzip
I have a file called myfile.dat.gz that I need to decompress. I have been trying gzip -d myfile.dat.gz, but this results in the error gzip: myfile.dat.gz: invalid compressed data--format violated.
...
0
votes
0
answers
496
views
How could I use logrotate and group by day a bunch of gzip files with an uncompresssed extension?
Doing a test in a production enviroment with rotation logs with 2 days just for testing purposes with gizp files. Created a test file at /tmp/.
/etc/init.d/test
/tmp/test/*.gz {
daily
...
0
votes
1
answer
558
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
1
answer
276
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
1
answer
977
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
1
answer
311
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
0
answers
521
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 ...
0
votes
2
answers
590
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
0
answers
341
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
0
answers
1k
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 ...
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 ...
0
votes
0
answers
48
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 ...
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 ...
0
votes
1
answer
305
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$Õïõ÷·...
0
votes
0
answers
65
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 ...
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
...
0
votes
1
answer
981
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
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. ...
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 ...
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: ...
0
votes
1
answer
370
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
0
answers
631
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
...
0
votes
1
answer
66
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
0
answers
246
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
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 ....
0
votes
0
answers
854
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 ...