Questions tagged [gunzip]

27 questions
282
votes
7 answers

How do you gunzip a file and keep the .gz file?

The default behavior of gunzip is to delete the .gz file after it decompresses. How do I prevent it from deleting the file?? If this functionality is not included then is there an alternative program that allows this? I'm using Ubuntu 9.04
Sen
  • 2,923
  • 2
  • 16
  • 5
123
votes
3 answers

How do I gunzip to a different destination directory?

How do I gunzip to a destination directory other than the current one? This did not work: gunzip *.gz /putthemhere/
Scott Szretter
  • 1,863
  • 5
  • 21
  • 24
30
votes
3 answers

Pipe gunzip and mysql to gunzip a dump and import it

I have a .gz sql dump file (example: foo.sql.gz) that i want import in my database with the classic mysql command. gunzip -c foo.sql.gz > foo.sql mysql -uroot -ppassword foo < foo.sql foo is the database. How can i pipe these two commands in a…
apelliciari
  • 423
  • 2
  • 5
  • 7
16
votes
2 answers

"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 $ gzip -d < tmp.gz > tmp gzip: stdin has more…
ruakh
  • 666
  • 1
  • 5
  • 12
10
votes
2 answers

How to use GNU parallel with gunzip

I have a directory full of .gz, I want to expand each archive in parallel with GNU parallel. However I did not achieve anything. I tried parallel 'gunzip {}' ::: `ls *.gz` parallel gunzip `ls *.gz` with no results, bash tells me: /bin/bash:…
gc5
  • 330
  • 1
  • 2
  • 14
9
votes
3 answers

How do I gunzip a directory?

I have a gzipped directory called "new" which contains other directories and files, that I compressed in the following way gzip -cvr --no-name /path-to-directory/new > new.gz I have copied this >700MB to another location (on a different server) and…
chaimp
  • 215
  • 1
  • 2
  • 7
9
votes
1 answer

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 following way. curl -O url | unpack it and store it…
nickg
  • 93
  • 1
  • 1
  • 4
9
votes
4 answers

how to verify whether a compressed .gz is corrupted or not?

I have many gz downloaded from the internet, and I would like to make sure they are not corrupted. Does the fact that I can open the archive with winzip on windows proves that everything is fine? I must find a way to check their integrity without…
ℕʘʘḆḽḘ
  • 291
  • 2
  • 4
  • 10
7
votes
6 answers

Is it possible to gunzip multiple files to a specific directory without deleting the original gz files?

I know this can be done for single files, e.g. gunzip -c my.gz > somedir/my Can it be done for multiple files? [UPDATE] I have a directory with a large number of .gz files (not .tar.gz), and I want to gunzip them into another directory while…
Bio_X2Y
  • 103
  • 1
  • 1
  • 4
5
votes
4 answers

How do I decompress .bgz files?

Is there any software that will decompress a file named nnnnn.tsv.bgz on a PC running Windows 10? The usual R commands will not do it.
Maringo7
  • 51
  • 1
  • 5
4
votes
2 answers

How to extract a single folder and its subfolders from a "tarball" (.tar.gz)

I need to extract a single folder and its subfolders from a tarball (.tar.gz) on a CentOS server. I haven't the slightest clue how to do it using an SSH terminal. I tried: gunzip -c files_20100623.0110.tar.gz | tar -xvf…
mikey1980
  • 173
  • 1
  • 2
  • 5
3
votes
2 answers

can gunzip work on file without a suffix?

Is there a way to gunzip a file that isn't ending with a .zip even though I know for a fact the file is indeed a zip?
jldupont
  • 6,604
  • 14
  • 38
  • 47
3
votes
1 answer

gunzip -c equivalent for tar.gz files?

What is the equivalent of gunzip -c to pipe the content of a bunch of tar.gz files without having to permanently "tar xzf" them and "tar czf" them back? Something like: tar xzf "-c" *.tar.gz | xargs grep something
719016
  • 4,177
  • 16
  • 59
  • 91
2
votes
2 answers

gunzip multiple files and concatenate in parallel?

Is it possible to gunzip multiple files and concatenate them into one big file, but do it in parallel given a multicore machine? For example, right now I do: gunzip -c file1.gz > final gunzip -c file2.gz >> final gunzip -c file3.gz >> final gunzip…
719016
  • 4,177
  • 16
  • 59
  • 91
2
votes
1 answer

Methods to open huge .sql.gz file?

I have huge 12 GB .sql.gz file that I need to unzip on my Windows 10 computer. So far, I have tried using WinZip, 7-Zip, and the gunzip command in Cygwin. I received the error messages shown below for each of those attempts. I know that the error…
Bob Loblaw
  • 29
  • 1
  • 4
1
2