Questions tagged [gzip]
A data compression program. Originally a GNU utility it has been cloned by most Unix variants.
389 questions
1
vote
1
answer
139
views
Parallel processing of single huge .bz2 or .gz file
I would like to use GNU Parallel to process a huge .gz or .bz2 file.
I know I can do:
bzcat huge.bz2 | parallel --pipe ...
But it would be nice if there was a way similar to --pipe-part that can read ...
2
votes
2
answers
91
views
Recovery of a compressed image not possible due to lack of Space - general understanding of compression methods
I used gzip to compress an image which is quite huge still.
dd if=/dev/sda2 bs=1M | gzip -c -9 > sda2.dd.img.gz
then I changed the partitioning of the Drive because I wanted to install Linux.
And ...
0
votes
0
answers
81
views
tar extracted file with bad output
I tarred one file with:
tar cf My-tarball.tar path/to/file.txt
Then compressed it:
gzip My-tarball.tar
But when i decompress it and extract it
gunzip My-tarball.tar.gz
tar -xf My-tarball.tar
the ...
1
vote
1
answer
72
views
Recover mis-gzipped folder / directory & files
I needed to compress/archive a folder, so I ran the following command:
gzip -v --rsyncable --fast -r myFolder/ -c > myFolderArchive.gz
...foolishly thinking this was going to do just what I ...
1
vote
0
answers
31
views
Extract and merge multipe tar gz [duplicate]
I have multiple tar.gz archives, the size of each archive is approximately 40 GB:
v1.0-trainval01_blobs.tgz
v1.0-trainval01_blobs.tgz
...
v1.0-trainval10_blobs.tgz
I can unpack each archive and get ...
2
votes
3
answers
353
views
Find positions of keyword in GZ'ipped file
I'm trying to identify parts of a MySQL DB that take most space in GZipped dumps that I need to frequently save and restore so that I can archive some tables partially.
I have a suspicion that ...
0
votes
1
answer
80
views
Is it possible to compress a tar ball with gzip/bzip2/xz after tar ball file has been created?
If we create a tar ball file by giving the following command
tar -cvf Docs.tar $HOME/Documents/*
then post creation of the tar ball is it possible to use gzip or bzip2 or xz or some other compression ...
0
votes
1
answer
148
views
"Permission denied" error when using sudo for writing image to /dev/sdb on Debian [duplicate]
I am confused as to why I am getting the following error:
$ sudo zcat firmware.A20-OLinuXino-Lime2.img.gz partition.img.gz > /dev/sdb
bash: /dev/sdb: Permission denied
Shouldn't sudo be able to ...
1
vote
0
answers
197
views
Recoverably recompress gzip files into zstd, preserving original checksums?
I need to archive a lot of gzip-compressed data. The problem is that compared to zstd, gzip is wasteful, both in terms of ratio and CPU time required to decompress the data. Because of that, I want to ...
0
votes
2
answers
288
views
tar: ./.tar.gz: file changed as we read it | "Flagged" files are unrelated to the file tar is supposed to operate on
I am trying to use tar to recursively compress all files with the .lammpstrj extension within the directory tree starting at the directory whose path is stored in the variable home. home contains the ...
0
votes
2
answers
221
views
extending recursive find to .tar, tar.gz, tar.bz2, and tar.xz on Debian 12
Continuing find a file within a tar.gz archive, how is it possible to automatically recursively search for files with given names, including the files inside the archives and compressed archives?
For ...
0
votes
1
answer
188
views
How to verify size of pigz (parallel gzip) archive contents? [duplicate]
I created some pigz (parallel gzip) - home page - compressed archives of my SSD disk drives. (compiled version 2.8)
I called one of them 4TB-SATA-disk--Windows10--2024-Jan-21.img.gz which says the ...
2
votes
4
answers
254
views
awk appends column in .gz file as seen with cat -A, but changes column name in regular output
Using awk, to this table I want to add a column where first row is "INFO" and rest of the rows are all "1".
$ gunzip -c foo.gz | head
SNPID CHR BP Allele1 Allele2 Freq1 Effect ...
1
vote
0
answers
971
views
telegram-desktop: qt.svg: Error while inflating gzip file: SVG format check failed
I use telegram-desktop on arch linux in sway. It sometimes crashes, so I started it from terminal. This way I find out telegram spams this message:
qt.svg: Error while inflating gzip file: SVG format ...
2
votes
2
answers
2k
views
How to modify a gzipped file with sed and then zip again the file?
I have a .vcf.gz file, with the following aspect:
#CHROM POS ID REF ALT
chr1 10894 chr1:10894:G:A G A
chr1 10915 chr1:10915:G:A G A
...