The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script for zipping a file jayaramanit Shell Programming and Scripting 4 08-06-2008 06:47 AM
zipping files shary Shell Programming and Scripting 3 07-21-2008 05:58 AM
Zipping files older than one month ramky79 Shell Programming and Scripting 2 04-07-2008 04:39 PM
Help me While zipping the file Jolly UNIX for Advanced & Expert Users 7 05-11-2007 10:05 AM
tar'ing and zipping files FredSmith UNIX for Dummies Questions & Answers 4 05-02-2006 03:09 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Jun 2008
Posts: 23
zipping all the tar files to singlr file in directory

Hi,

i have more than 300 tar files in directory and i want to zip all tar files to single file.

could anybody tell me the command since i know how to do zip for single tar file:

bash-3.00$gzip 2008_11_10.tar

bash-3.00$ pwd
/oracle1/archivebackup


in this directory i have lot files and i want to make single zip file.

Thanks

Prakash
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Dec 2008
Location: .at
Posts: 1,067
Code:
tar -cf - *.tar | gzip -c9 > everything.tar.gz
Reply With Quote
  #3 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,464
That might deserve a little more explanation. gzip does not support multiple files, it's purely for stream compression. tar, on the other hand, does not compress, but is great at bundling files together into a stream while preserving all their attributes. This is why they are so frequently friends.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66