command for gunzip?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers command for gunzip?
# 1  
Old 10-22-2012
command for gunzip?

Hi All

This is very basic query but I have a huge folder named backup that I need to transfer.

What is the command to convert the file in format backup.tar.gz so that I could transfer the folder.

Is the command gzip filename?


Thanks
Sonia.
Smilie
# 2  
Old 10-22-2012
Here it is
Code:
tar -cvzf filename.gz filename

This User Gave Thanks to Adhi For This Post:
# 3  
Old 10-22-2012
Code:
tar -cvf backup.tar backup

Code:
gzip backup.tar

Now you will have backup.tar.gz
This User Gave Thanks to Yoda For This Post:
# 4  
Old 10-22-2012
Sorry for the confusion.
What I meant to say was I had a directory named backup and I wanted that directory in format as
backup.tar.gz

I used gunzip directly but it gave me an error

gzip: backup is a directory -- ignored

So I wanted a command for directory.
Hope my query is clear.Smilie

Thanks
# 5  
Old 10-22-2012
Sorry, I misread your question. Good answers have been offered already.
This User Gave Thanks to Scott For This Post:
# 6  
Old 10-22-2012
You can use tar command with the directory name..
This User Gave Thanks to Adhi For This Post:
# 7  
Old 10-22-2012
Thanks bipinajith for the spot on answer!!
Thanks Adhi and Scott for insight!! Smilie
Smilie Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

1 command line gunzip -c get 3 output.

Hi everyone----I have big file like 15G to 20G and took really long time to get the output, cause run 3 steps gunzip -c below to get the ouput. Is there is the way can run 1 command line gunzip -c then get all 3 output (Unzipped Bytes, Records, Record, Length) same time? Please any input for... (5 Replies)
Discussion started by: dotran
5 Replies

2. UNIX for Dummies Questions & Answers

Gunzip and tar command

Hi I wanted to tar and gunzip a file named backup tar: backup.tar: Wrote only 2244 of 10240 bytes tar: Error is not recoverable: exiting now Please tell me what I am doing wrong? Please do help. (4 Replies)
Discussion started by: sonia102
4 Replies

3. Shell Programming and Scripting

gunzip with out messages

Hi all, tar cvPf - /data/test | gzip > /data/backups/test.gz i am running th above command when i execute it giving a big list of files that in test which it is tarring..on the terminal.... is der nay way to do it silently ..... like with out getting those messages on the terminal..... ... (1 Reply)
Discussion started by: firestar
1 Replies

4. Shell Programming and Scripting

Gunzip files

Hello Everyone, I have a few files in a directory such as : abc.xyz.txt1.gz abc.xyz.txt2.gz .... .... ... ... abd.xyz.txt100.gz And I want uncompressed files such as: abc.xyz.txt1 abc.xyz.txt2 .... ... ..... .... (1 Reply)
Discussion started by: ad23
1 Replies

5. Shell Programming and Scripting

Help with gunzip

Hi All, I have a file "HOTEL_INFO.zip" and getting the below errors: server1:/home/arun# gunzip -S .zip HOTEL_INFO.zip gunzip: HOTEL_INFO.zip: first entry not deflated or stored -- use unzip server1:/home/arun#unzip HOTEL_INFO.zip ksh: unzip: not found. ... (11 Replies)
Discussion started by: Arunprasad
11 Replies

6. UNIX for Dummies Questions & Answers

gunzip

I have a zip file as a.zip and it contains 1m xml files. like a1.xml, a2.xml.... The size is also very big nearly 1GB. I want to extract only a123.xml. Can any one help how can I do this? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

7. Shell Programming and Scripting

Help on gunzip

Hi All, I am using UNIX command to unzip the files gzip -d9 DW_*.gz The Xmls are compressed using gzip and it is received in the .gz format at UNIX box which need to be uncompressed. The above command is working fine for 400 compressed xmls(.gz files) but when the count becomes 401 or more i... (7 Replies)
Discussion started by: Codesearcher
7 Replies

8. UNIX for Dummies Questions & Answers

gunzip syntax help

Hi All, I am a newbie to unix and need help. I am trying to unzip the files in source library to destination library. the input filename can be any thing with abc and after unzip, i want the same file name with original extension suppose,the input file is ABC_jun25.dat.gz after gunzip in the... (1 Reply)
Discussion started by: onlyjayaram
1 Replies

9. UNIX for Dummies Questions & Answers

Gunzip

Hi can't unzip a gz file in TurboLinux 7.0 when i'm trying this gunzip filename.tar.gz it always says not in gzip format what should I do...please help me (4 Replies)
Discussion started by: CreamHarry
4 Replies

10. UNIX for Dummies Questions & Answers

gunzip....problem

Hi........... i have downloaded...sunscreen3.1 lite frm sunfreeware .com and it is in tar.gz format..so i download gzip also... now pls tell me how to install gzip and how to unzip tht sunscreen tar.gz file..............after unzipping i have to untar the tar file or not.....pls tell me in... (2 Replies)
Discussion started by: Prafulla
2 Replies
Login or Register to Ask a Question