Skip to main content

Questions tagged [gz]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
358 views

If a .gz file was downloaded can it demage my computer or steal data?

I was unaware that I was on a data phishing landing page (it was very clever, I haven't seen anything like this before) and I downloaded a .gz file. After that it started to become suspicius so I ...
Bálint Forgács's user avatar
0 votes
0 answers
569 views

gz file corrupted while transfer

I have huge gz files generated in linux machines and everyday night there is a script running to move files to remote network storage which is also linux host with terabytes data. The problem is, I am ...
nu110rz3r0's user avatar
0 votes
2 answers
1k views

How to restore the original file.gz after running a gunzip -f file.gz?

The default behavior of gunzip is to delete the .gz file after it decompresses. There's a way to restore the original file from the decompressed version on Mac OS?
SuperAtic's user avatar
  • 101
2 votes
0 answers
1k views

Why is my .tar.gz larger than the sum of the separately compressed files in it?

I observed the following situation which is somewhat unexpected to me: I have a csv file and a corresponding txt file. Uncompressed, their sizes are 375MB and 5KB. When I compress the csv file ...
der_grund's user avatar
  • 121
7 votes
4 answers
6k views

What is the reason that .tar.gz files have two extension instead of one?

From what I understand this type of file is an archive just like RAR files are. Why isn't there the .targz extension plain and simple? Is there more than one program that is creating this kind of file ...
yoyo_fun's user avatar
  • 1,863
0 votes
2 answers
54 views

My Java is in gz format?

I'm having problems downloading jre-8u101-windows....tar.gz java, because it's in .gz format instead of .exe, so when I run the installer it opens in my zip folder(Bandizip) please help Thanks in ...
MrWardy's user avatar
1 vote
1 answer
367 views

How is wget able to download an iso file when only iso.gz is listed under the FTP library

I hit a behavior of wget from FTP server (URL: ftp://foo.com/bar/...) that was unfamiliar to me. Can you direct me to some documentation or explain how is the following possible? If I wget the folder'...
RaamEE's user avatar
  • 482
3 votes
2 answers
10k views

How to open this file? *.ps.gz

Please somebody help me to open this file . I am not able to open it/unzip it after downloading.I always get an error when I try to unzip using 7zip.
Ajith's user avatar
  • 33
5 votes
1 answer
6k views

How do I safely convert a .gz file to a .xz file

I have some huge files that are currently gzipped and I would like to xz them. I want set up a script to do this, but I want to be careful not to lose the data, i.e. I should never delete the gzipped ...
pythonic metaphor's user avatar
16 votes
3 answers
37k views

How do I remove the full path when doing a tar.gz compression?

I'm using this command to archive a directory named g from Java code: tar czf /a/b/c.tar.gz /e/f/g When the tar file c.tar.gz is created, I find an entire path e/f/g then all files of the g folder ...
Shafiul's user avatar
  • 278
4 votes
6 answers
8k views

How to extract tar.gz on windows xp

Can anyone suggest me ways to extract tar.gz file on windows xp ? Is there any built-in tool ? Or may be a script that can be written ? PS: Please note I can't install new software on my computer (do ...
misguided's user avatar
  • 187
61 votes
6 answers
107k views

How can I get the uncompressed size of gzip file without actually decompressing it?

Please find my OS details: $ uname -a AIX xxyy 1 6 000145364C00 I've tried the following command to get size of a file in gzip archive: $ gzip -l mycontent.DAT.Gz compressed uncompr. ratio ...
user238010's user avatar
1 vote
1 answer
633 views

Remote restore gz mysql database

I tried $> ssh root@ip "gunzip < [backupfile.sql.gz] | \ mysql -u [uname] -p[pass] [dbname]"` but get the error: ERROR 1044 (42000) at line 42: Access denied for user '[uname]'@'%' ...
resting's user avatar
  • 951
0 votes
1 answer
7k views

Create a tar and splitting it into multiple archives then putting them back together

I am using the following for creating the tgz files: tar zcf - /usr/folder | split -b 30720m - /usr/archive.tgz Now I get three files: archive.tgzaa, archive.tgzab and archive.tgzac So again I want ...
user130145's user avatar
5 votes
2 answers
14k views

Use tar and gz to create archive in Ubuntu Terminal

I want to archive 3 folders, given their names in Ubuntu command prompt. When I use tar -c abc tt zz -> it will do nothing.
radu florescu's user avatar
2 votes
2 answers
5k views

Convert .tar.gz/.tar.bz2 to .7z in batch?

How do I convert .tar.gz and .tar.bz2 files to .7z files using the command line?
user541686's user avatar
  • 23.5k
4 votes
5 answers
3k views

How to do the equivalent of "grep something * -Rin" on list of tar.gz files?

I've got a bunch of tar.gz files and I want to do a "grep something * -Rin" as I would on them if they weren't tar.gzed. I want to keep them tar.gzed as they are, but grep on them on-the-fly and find ...
719016's user avatar
  • 4,563
8 votes
1 answer
7k views

Critical gzip mistake - how to undo 'gzip -r ./'

So I tried to make a gzipped backup of my entire directory structure, but I inadvertently issued the command gzip -r ./, hoping to add all files and folders to a single gzip archive. This obviously is ...
veerman's user avatar
  • 81
74 votes
5 answers
36k views

gzip without tar? Why are they used together?

Why are tar and gzip almost always used together, and not just gzip? Is there any advantage to that method?
user541686's user avatar
  • 23.5k
2 votes
3 answers
2k views

"tar -czf" for first 5 thousand files

I have a directory with too much files in it. I want to compress first 5 thousand files in that directory to become file.tar.gz and then 5001 - 10000...and so on how to do it?
user avatar
135 votes
10 answers
654k views

How to open a .tar.gz file in Windows?

I need to open a file that sadly is only available in the .tar.gz file format and I am using Windows 7. I can unzip the file using 7-zip but after that I still have a .tar file that I can't open in ...
Jonas's user avatar
  • 28.3k
3 votes
2 answers
19k views

Does anyone know of any version of Gzip which supports 64-bit Windows?

Does anyone know of any version of Gzip which supports 64-bit Windows? I could not find anything.
Shadi's user avatar
  • 131
3 votes
1 answer
2k views

Importing to mysql from a .gz via shell - how to do it without extracting to a file? [duplicate]

Possible Duplicate: Pipe gunzip and mysql to gunzip a dump and import it i have a .gz file of an sql dump. at the moment i extract it to its own file (ie dump.sql.gz extracted to dump.sql) then i ...
user avatar
287 votes
7 answers
318k views

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 ...
Sen's user avatar
  • 2,973
86 votes
17 answers
106k views

Untar, ungz, gz, tar - how do you remember all the useful options?

I am pretty sure I am not the only one with the following problem: every time I need to uncompress a file in *nix I can't remember all the switches, and end up googling it, which is surprizing ...