Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
68 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 ...
BenjamimCS's user avatar
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 ...
Ars ML's user avatar
  • 11
0 votes
1 answer
71 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 ...
KDM's user avatar
  • 116
1 vote
0 answers
184 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 ...
d33tah's user avatar
  • 1,381
0 votes
2 answers
271 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 ...
Felipe Evaristo's user avatar
0 votes
2 answers
211 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 ...
AlMa1r's user avatar
  • 1
0 votes
1 answer
180 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 ...
Vlastimil Burián's user avatar
-1 votes
1 answer
72 views

How can I evaluate tars and gzips for validity without expanding them?

LONG ago I wrote a backup script for our site and have updated it ever since. However, occasionally things go wrong and some of the older backups are now broken. In days gone by I had used the utility ...
Richard T's user avatar
  • 268
1 vote
1 answer
3k views

Normal gz file not extractable by tar [duplicate]

I have a gz archive but for some reason tar said that the format is incorrect even though I can double click it in mac Finder and extract it normally, and file command shows the same format just like ...
phuclv's user avatar
  • 2,405
0 votes
1 answer
373 views

Extract first n bytes from .tar.gz and output as a .tar.gz in a single command

I have a .tar.gz as input and want to extract the first 128 MiB of it and output as a .tar.gz in a single command. I tried: sudo tar xzOf input.tar.gz | sudo dd of=output bs=1M count=128 iflag=...
JohnnyFromBF's user avatar
  • 3,606
1 vote
0 answers
732 views

Compressing small files with gzip makes its size smaller than with bzip2, why? [closed]

I have a question, just a little thing couch my eyes it's about compression with gzip and bzip2: If I understood correctly - bzip2 requires more processing power but compresses files smaller and more ...
Karuch's user avatar
  • 11
1 vote
1 answer
553 views

Why GZIP utility cares about extension?

Whenever I need to decompress a file which was compressed with Gzip, I need to rename the file with a .gz extension , I tried other compression utility like zip, bzip2 and they don't seem to care ...
pwnr007's user avatar
  • 13
0 votes
0 answers
1k views

Unable to decompress gzip file ("not in gzip format")

I've been tasked with diagnosing an issue with a webpage, and I've been able to trace the issue back to a gzip'ed JavaScript file, jquery.min.js.gz. To view the code, I've downloaded and attempted to ...
PerplexedDimension's user avatar
0 votes
2 answers
945 views

Compress several files according to the pattern

I would like to know how to compress several files according to the pattern using gzip, tar, etc... that is, if I have these files: server_regTCA.log.2021.02.12 server_regTCA.log.2021.02.13 ...
miguel ramires's user avatar
-1 votes
1 answer
741 views

Pick random line from a compressed text file with zcat/gz or altnernatives

I have a simple bash script that picks a random line from a text file. This is originally done with shuf file.txt | head -1 (the same result can be achieved with cat file.txt | shuf | head -1). I also ...
lisa-thehexbit's user avatar

15 30 50 per page
1
2 3 4 5 6