Questions tagged [gz]
25 questions
287
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,973
135
votes
10 answers
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 Windows.
Is there a way to open .tar.gz files on…
Jonas
- 28,660
86
votes
17 answers
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 considering how often I need to do this.
Do you have a…
deadprogrammer
- 865
76
votes
5 answers
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
- 23,629
63
votes
6 answers
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 uncompressed_name
-1223644243 1751372002 -75.3% …
user238010
- 631
16
votes
3 answers
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 inside it. But I only want to see files under the…
Shafiul
- 278
- 1
- 2
- 6
8
votes
1 answer
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 very wrong, but before I had time to quit, it…
veerman
- 81
8
votes
4 answers
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 and each one is adding its extension to the…
yoyo_fun
- 1,883
5
votes
1 answer
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 version unless the xz version was definitely…
pythonic metaphor
- 2,436
5
votes
2 answers
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
- 259
4
votes
6 answers
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 not have admin privileges).
misguided
- 187
- 1
- 3
- 10
4
votes
5 answers
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 the occurrences of my grep with the prefixed file…
719016
- 4,683
3
votes
1 answer
Importing to mysql from a .gz via shell - how to do it without extracting to a file?
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 import that file, then once its done i delete the…
nixnub
3
votes
2 answers
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
- 131
3
votes
2 answers
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
- 33