The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reg: Gzip sam99 Shell Programming and Scripting 5 01-30-2008 04:43 AM
tar/gzip/gz...which one to use? abhijeetkul UNIX for Advanced & Expert Users 5 03-24-2006 12:00 AM
TAR and GZIP help VandeMatram UNIX for Dummies Questions & Answers 3 03-17-2006 04:35 AM
gzip alisevA3 UNIX for Dummies Questions & Answers 2 08-12-2004 08:29 AM
gzip mfran2002 SCO 1 12-01-2003 07:23 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2002
Registered User
 

Join Date: Feb 2002
Location: Charleston
Posts: 7
using gzip

Hi, I am trying to unzip a file that I unmounted onto a unix machine from a cd I had burned in a Windows machine. The file I am trying to unzip is a .tar file... it was originally a .tar.gz file because it was zipped using gzip. I have tried:
% gzip -d hpux.tar (where hpux.tar is the file that was acquired from the cd).
Do I need to rename this to a .tar.gz file in order to use gzip? I tried that but it didn't work, but I could be doing this incorrectly. Any suggestions?

Also, this zipped files has folders containing other files. When it is finally unzipped, will it set up new folders within the directory where I am unzipping it?

Any help is greatly appreciated!
Thanks
Forum Sponsor
  #2  
Old 11-14-2002
Registered User
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
tar -xvf file.tar

yes, this will set up a new directory sturcture, in the folder where you are executing this command, as per the contents of the tar file...

if you need help on the options do a man tar...

see the x, f options...

do a search on tar in these forums...

Cheers!
Vishnu.
  #3  
Old 11-15-2002
Registered User
 

Join Date: Nov 2002
Posts: 14
If you do not want to care about filenames, you could also do this:

cd to_where_you_want_to_unpack_the_tar_files
gzip -c < path_to_the_zipped_tar_file | tar xvf -
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0