Questions tagged [gzip]

Open source command line data stream compressor and archiver.

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

tar skip trying to compress files by extension

I noticed when compressing a directory with tar+gzip that the compressor was spending a lot of time trying to compress mp4 video files in vain. This makes me wonder: does gzip or any other common ...
qwr's user avatar
  • 2,792
0 votes
0 answers
39 views

log management with crontab

I have a syslog-ng with multiple firewall logs and I want to compress log file everyday and delete logs older than 30 days. Logs path example : /var/log/firewall/xx.xx.xx.01/2023/04/27/firewall.log ...
Zenwo's user avatar
  • 1
1 vote
0 answers
629 views

GZIP process takes CPU usage 100%

GZIP uses 100% of the CPU. I tried using pstree -apl to get which processes needed the GZIP, and I found Logratate. Have some people experienced this? And how did you solve it?
Meirza's user avatar
  • 111
0 votes
1 answer
196 views

Ubuntu: gunzip: No space left on device, while df shows otherwise

I am trying to decompress a .gz file with the gunzip command and I get the error 'No space left on device'. This is the output of 'df -h': Filesystem Size Used Avail Use% Mounted on /dev/root ...
sofia sousa's user avatar
0 votes
1 answer
44 views

How to print the manual of gzip program

I am new to Linux and I need to print the manual of gzip program but I am not able to figure it out. I have written the command man gzip but I am not sure whether it is reading or printing it. I am ...
Zeeshan Xafar's user avatar
1 vote
1 answer
593 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 ...
HelloMrMeseeks's user avatar
0 votes
1 answer
115 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 ...
pasmon 79's user avatar
0 votes
2 answers
769 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 ...
vignesh's user avatar
1 vote
2 answers
12k views

How to extract a corrupted zip file?

I compressed some zip files into another zip file. Later, when I tried to extract it, I got the following message: End-of-central-directory signature not found. Either this file is not a zipfile, ...
Ram's user avatar
  • 41
0 votes
0 answers
115 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 ...
kirti purohit's user avatar
1 vote
0 answers
232 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...&...
Mario Palumbo's user avatar
0 votes
0 answers
301 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:...
E. Jaep's user avatar
  • 133
2 votes
1 answer
9k 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.
user801855's user avatar
1 vote
1 answer
175 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 ...
Rob's user avatar
  • 115
1 vote
0 answers
794 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?) ...
rpk24x1's user avatar
  • 11
0 votes
1 answer
1k 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 ...
Homunculus Reticulli's user avatar
0 votes
1 answer
279 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 ...
Nuzrah Nilamdeen's user avatar
3 votes
1 answer
173 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 ...
kikibobo's user avatar
0 votes
1 answer
84 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-- ...
Thufir's user avatar
  • 4,551
1 vote
2 answers
672 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-...
Werner Raath's user avatar
0 votes
1 answer
96 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 ...
Juan's user avatar
  • 1,777
0 votes
0 answers
43 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 ...
Juan's user avatar
  • 1,777
1 vote
2 answers
257 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/...
Gerold Broser's user avatar
11 votes
1 answer
10k 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 ...
W.M.'s user avatar
  • 213
10 votes
2 answers
20k 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* ...
vincet's user avatar
  • 789
0 votes
1 answer
170 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 ? ...
espr3ss0's user avatar
  • 107
1 vote
1 answer
71 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 ...
Jesus Ruiz Guirado's user avatar
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 ...
Brajmohan Kumar's user avatar
0 votes
2 answers
5k 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 ...
Asifa Hameed's user avatar
3 votes
1 answer
3k 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. ...
Paul Benson's user avatar
  • 1,022
0 votes
0 answers
175 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 ...
rabbi bhumbla's user avatar
1 vote
1 answer
8k 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$ ...
Mohammad Kholghi's user avatar
10 votes
2 answers
19k 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 ...
Mohammad Kholghi's user avatar
1 vote
1 answer
1k 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 "...
Henry Hargreaves's user avatar
3 votes
1 answer
266 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
3k 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... ...
Fuseteam's user avatar
  • 383
2 votes
4 answers
12k 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 ...
adam's user avatar
  • 305
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 ...
Jesse Yishai's user avatar
0 votes
1 answer
134 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 ...
Harun ERGUL's user avatar
0 votes
1 answer
853 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 ...
guf's user avatar
  • 53
0 votes
0 answers
2k 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....
HarveyP's user avatar
  • 33
20 votes
2 answers
49k 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, ...
martin's user avatar
  • 473
0 votes
1 answer
5k 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?
Rushikesh Gaidhani's user avatar
1 vote
1 answer
24k 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 ...
Minoo's user avatar
  • 43
0 votes
1 answer
498 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 ...
LizzAlice's user avatar
  • 127
5 votes
3 answers
17k 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
αғsнιη's user avatar
  • 35.5k
0 votes
0 answers
482 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 ...
Krasimir Yordanov's user avatar
0 votes
1 answer
108 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 ...
user3760657's user avatar
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/:...
J Clark's user avatar
  • 21
7 votes
1 answer
11k 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 ...
Bevan's user avatar
  • 216