Questions tagged [gzip]

Open source command line data stream compressor and archiver.

Filter by
Sorted by
Tagged with
1 vote
1 answer
147 views

How do I .zip multiple files and retain their file names. EX file1.file file2.file -> file1.zip file2.zip

As the title suggests I need to .zip multiple files (thousands) in a folder and have each file zipped into their own archive with the original file name as the .zip filename. If I try to do this with ...
0 votes
1 answer
40 views

Xournal++ file extension gets associated with gzip

I installed xournal++ on kde plasma kubuntu 20.04(LTS) by snap. All went well except the file extension .xopp got associated with gzip. I removed the snap version and reinstalled via deb. The problem ...
0 votes
2 answers
215 views

Do I need to convert to gzip format or tar format?

$file ccache-2.4.tar.gz ccache-2.4.tar.gz: HTML document, ASCII text The file, ccache-2.4.tar.gz is in the ASCII test format ccache-2.4.tar.gz: not in gzip format tar: This does not look like a ...
0 votes
0 answers
71 views

Can't extract any files

I have been putting up with this for a while and using a workaround by opening into the zip and dragging and dropping onto desktop, but it's a whole other story with tar.gz files because I cannot open ...
0 votes
1 answer
4k views

how to extract a currupted zip file

I compressed some zip files to another zip later when I tried to extract it it says End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a ...
  • 11
0 votes
0 answers
87 views

Decompress .zone.gz file

I have a file names xyz.zone.gz opening it up via gunzip gave me an error gzip: /home/User/Downloads/xyz.zone.gz: not in gzip format Earlier, I thought that the its a .gz file but since it gave me an ...
1 vote
0 answers
138 views

GUI - compress a folder in tar.gz format skips the backup files (files ending with "~")

If I have these example files in the folder "Example": text1.txt text1.txt~ text2.txt text2.txt~ text3.txt text4.txt After the compression with mouse right-click and click "Compress...&...
0 votes
0 answers
109 views

gzip i/o error while wrinting to NAS

I have a backup script that creates a backup archive onto a mounted NAS drive: tar zcf /mnt/nas_drive/backup.tgz .??* * About 50% of the time, the process fails with the following error message: gzip:...
  • 133
1 vote
1 answer
5k views

unzip .tar.gz file in terminal [duplicate]

How do I unzip a .tar.gz file in the terminal? I'm not able to do so in GUI, because I want to extract it to a /usr directory, and will need the sudo command.
1 vote
1 answer
129 views

How do I instalI xfe-1.43.2.tar.gz?

I am running Ubuntu 18.04.5 LTS I installed xfe file manager with: sudo apt install xfe version 1.42. I would like to upgrade it to version 1.43.2. I downloaded xfe-1.43.2.tar.gz and extracted it. I ...
  • 107
1 vote
0 answers
564 views

How to backup a folder from ubuntu so that it can be used afterwards on any file system and OS, by any user

Summary: I need to backup a folder (not the entire system) with 450 GB worth of content to many different external drives (NTFS and ext4). I'd like to archive it (tar) and compress it (maybe gzip?) ...
  • 11
0 votes
1 answer
954 views

Missing files? 3Gb+ .tar.gz file contains files with total size of 6.2Kb

I am running on Ubuntu 18.04.4 LTS. I gzipped a folder with roughly 60+K files into a .tar.gz file. The compressed file had a size of 3.3Gb. I opened the compressed file to extract some files, and ...
0 votes
1 answer
216 views

How can I install 2 mysql instances in ubuntu using the generic binaries?

I want to install 2 mysql versions, one on the default port (3306) and the other on the 3308 port, on ubuntu 18.04 using the tar.gz file for generic binary installation. I would really appreciate if ...
3 votes
1 answer
169 views

Zip certain files having filenames alphanumerically bigger than others

I gzipped files in a slurm job. But job canceled before it is done. It takes so long(~10min for a file, and there is 200 files). How can I zip only the remaining files which are not zipped yet? $ ls ...
0 votes
1 answer
66 views

How to zip a mobi file from the CLI?

Using tar works fine: thufir@dur:~/Desktop$ thufir@dur:~/Desktop$ ll total 9720 drwxr-xr-x 2 thufir thufir 4096 Jun 13 13:14 ./ drwxr-xr-x 48 thufir thufir 4096 Jun 13 00:46 ../ -rw-r--r-- ...
  • 4,383
0 votes
2 answers
231 views

Compress folder following any symbolic links

I store a lot of my data in a flat structure and the create symbolic links to different folders where my clients can access them via OwnCloud. I need to compress one of these folders containing sym-...
0 votes
1 answer
58 views

How to control gzip and sed process

I use Ubuntu Studio 19.10, Linux 5.3.0-40-lowlatency (x86_64). Since a while, one of my PCs, is working a lot with some process (apps) I've never programmed to work: "GZIP" and "SED" (and there are ...
  • 1,681
0 votes
0 answers
38 views

Is GZIP working always (invisible), by default?

I use Ubuntu Studio 19.10. I want to know if the app GZIP is working, invisible, at any time, by default, even if we don't ask it to do something. In other words... Can this app work in an automatic ...
  • 1,681
1 vote
2 answers
192 views

Why does Drag&Drop from Engrampa (*.tar.gz content) to Thunar not work?

There's a tooltip when dragging (see the screenshot below) but at dropping it flies back to Engrampa and nothing is done: no unzip, no untar, no mkdir(s), no copy, no sudo password dialog, no info/...
8 votes
1 answer
7k views

How to exclude a folder by name recursively when making a tar archive?

I know it is possible to exclude a particular folder by a command like this: tar --exclude='/srv/www/project/node_modules' -zcvf /backup/project.tgz . My question how to exclude any folder named ...
  • 183
8 votes
2 answers
14k views

How to extract *.tgz.part-*? [duplicate]

I have several files as follow : multiview_action.tgz.part-aa multiview_action.tgz.part-ab ... ... multiview_action.tgz.part-ap I tried the following command : tar -zxvf multiview_action.tgz* ...
  • 769
0 votes
1 answer
143 views

gzip strange idle usage?

I've noticed last couple of nights my fans come on lightly as if the cpu was being used. Found the culprit is gzip, however no open files and pretty much nothing else to show. What could it be up to ? ...
  • 107
1 vote
1 answer
55 views

Problem with a front end of compressed files

I need to make a frontend for compressed files, the idea is that if you receive a gz or bz2 file, uncompress it with gunzip and bunzip2. If what you receive is a tar.gz or a tar.b2 you should unpack ...
3 votes
1 answer
1k views

How to install and enable brotli compression on LEMP on ubuntu 18.04

I need some help. I have enabled gzip compression, but I also want to allow brotli compression on my server. I followed many articles available on Google, but none of them helped me to install and ...
0 votes
2 answers
3k views

curl unexpected end of file when downloading gzip

I used command The URL the data is located at. URL=http://data.biostarhandbook.com/rnaseq/projects/griffith/griffith-data.tar.gz Downloading and unpack the data. curl -s $URL | tar zxv I got ...
3 votes
1 answer
2k views

archive folder /usr/share/man

I have Ubuntu 18.04 LTS. There seem to be thousands of gzip archive files, eg stored under the /usr/share/man folder and its sub-folders, which I'd like to get rid of as they just clutter up my drive. ...
  • 1,015
0 votes
0 answers
91 views

Extract same file from multiple directories with same name i.e. 00000.gz?

Extract the file from multiple folders with same name into some other folder with diffrent name.. If possible with increasing count file1 to file100. As of now if i run this command then it only ...
1 vote
1 answer
7k views

append or remove file from tar and tar.gz

I want to append files to foo.tar: tar -rvf foo.tar IMG_1807.MOV this works, but when I want to remove files: tar -dvf foo.tar IMG_1807.MOV doesn't work. It shows the output: Terminal:~/Desktop$ ...
10 votes
2 answers
16k views

gzip 2 files into one file

I want to gzip two or more files into one file, I checked this and this but both have files like: n1.txt, n2.txt, ... but my filenames are completely different, like: file.mp4, bar.txt, foo.jpeg and I ...
0 votes
1 answer
814 views

How to edit header of tar.gz file that has been split

I downloaded a tar.gz file which is approx 50gb, and it is part of a larger tar.gz file that is 500gb that was split up into ten 50gb sections. When I try and decompress the 50gb file, I get an "...
3 votes
1 answer
230 views

Automating Gzip enabling and caching expiration in Apache

Instead me having to copy-paste the following codes to enable Gzip comperssing and cache expiration into my apache2.conf each time I create a new server-environment, is there a way to make them appear ...
user avatar
0 votes
0 answers
2k views

invalid compressed data--crc error invalid compressed data--length error

I gzipped a 8.7GB kvm qcow2 image but I forgot to add the -k parameter so the original image is lost. So in order to get it back i tried to "gunzip" and the resulting file blew up past 400GB... ...
  • 333
2 votes
4 answers
9k views

how to recursively extract where folders are uncompressed but files inside them are compressed.

I have tried everything i know and dozens of old forum posts on this kind of thing...nothing is working. I have uploaded a backup wordpress directory to web server after the existing one was ...
  • 185
2 votes
3 answers
2k views

How to insert a line break between stderr and stdout

This question helped me understand how to combine stderr and stdout: How to redirect stderr to a file with this command: gunzip -vc /opt/minecraft/wonders/logs/20* 2>&1 But how may one ...
0 votes
1 answer
121 views

Gzip freezes during the execution of ./configure command

I am following the instructions of LFS book. I have unzip or untar many packages and install it. But when I do the same process for Gzip package It freezes. Everything is works fine until checking for ...
0 votes
1 answer
666 views

Need help with: "file type Gzip archive is not supported"

I’ve downloaded the Ltc core wallet on Ubuntu 16.04, 32bit. When I try opening the folder, a message tells me ‘file type Gzip archive is not supported’. So I downloaded Xarchiver and tried again, with ...
  • 43
0 votes
0 answers
1k views

Is it possible to recover data from a partial tar.gz file?

I was uploading my backup tar.gz file over several sessions. With one session still to go, I thought I would take a break. That was the last time I was able to use that pc - dead HD. The original tar....
  • 33
20 votes
2 answers
46k views

How to uncompress a .bin.gz file?

I have a file named like file.bin.gz. I tried using gzip -d f.bin.gz to uncompress it, and got a .bin file. Is the correct way to uncompress .bin files to use gzip -d? Also, .bin is a binary file, ...
  • 453
0 votes
1 answer
4k views

how to get the latest version of gzip? [closed]

I am currently running Ubuntu 12.04 LTS I'm having gzip of version 1.4. how do I get the latest version of it (say gzip 1.6)? how to I upgrade to latest version of it?
1 vote
1 answer
17k views

.tar.gz file downloaded as HTML document, ASCII text

While going through the following instructions: curl -O http://static.druid.io/artifacts/releases/druid-latest-bin.tar.gz tar -xzf druid-latest-bin.tar.gz cd druid-latest I received the following ...
  • 43
0 votes
1 answer
452 views

Bash command accessing all subdirectory fails

I have a directory structure like this: example/ace/actives_final.sdf.gz example/ace/decoys_final.sdf.gz example/aces/actives_final.sdf.gz example/aces/decoys_final.sdf.gz I only want to access each ...
  • 127
4 votes
3 answers
15k views

How do I get a file size(original file size) within .tar.gz without uncompress it?

I make myfile.txt to zip file with below command, is there a way to get original file size 'myfile.txt' without unzipping it. tar -czf myfile.tar.gz myfile.txt
  • 34.3k
0 votes
0 answers
465 views

extract and save subfiles from a gz file

EDIT: I used the command tar xvfz and everything is good now. I see a subfolder with all the files in it, just as i wanted to. First, please excuse me this is a stupid question, i am very new to ...
0 votes
1 answer
93 views

How to write "gzip -c foo.txt > foo.txt.gz" with 2 redirection operators instead of 1

A bit of an arbitrary question, but it's part of a school assignment so I don't really have a choice. The problem in question is this: compress foo.txt into foo.txt.gz while keeping the original ...
2 votes
0 answers
36 views

/boot/ Full, not enough space to remove old kernels? [duplicate]

EDIT: following the instructions on this thread, I attempted to remove my old/unused kernels but could not. It looks like there's not enough space for the operation, what do I do? Output of ls /boot/:...
  • 21
7 votes
1 answer
9k views

undo a gzip recursively

OK, so I did a stupid, and forgot to specify a filename in the process of doing a website backup. Now, all my files say file_name.extn.gz How do I get all those mistakenly gzipped files back to ...
  • 216
1 vote
1 answer
2k views

Compress to a single file .nii.gz wont work

I have several files with .nii format, I wanted to create a single file with .nii.gz format, so I opened the terminal and cd to where I keep my .nii files and then used this command: gzip *.nii but ...
  • 217
2 votes
2 answers
3k views

How to compress , keep and empty original file with gzip

For some reason I'm not being able to use logotate to compress files periodically. So I decided to write my own script, it's not the most hard thing but one small detail is pinning me down. When using ...
  • 4,873
2 votes
1 answer
4k views

How to recursively un-gzip all my files?

I accidentally gzip'd all my files in a directory, and in all of its subdirectories. All the files in the subdirectories are now replaced with a zipped one (.gz extension). For example example.txt is ...
  • 124
1 vote
1 answer
316 views

all TARs not extracting [duplicate]

Link to file: http://nginx.org/download/nginx-1.11.6.tar.gz so, i'm trying to install nginx with the rtmp module and when I go to extract the nginx source from the tar.gz i get an error: gzip: ...