The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 07:43 AM
tar/gzip/gz...which one to use? abhijeetkul UNIX for Advanced & Expert Users 5 03-24-2006 03:00 AM
TAR and GZIP help VandeMatram UNIX for Dummies Questions & Answers 3 03-17-2006 07:35 AM
gzip alisevA3 UNIX for Dummies Questions & Answers 2 08-12-2004 11:29 AM
gzip mfran2002 SCO 1 12-01-2003 10:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2002
nattie_h nattie_h is offline
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
  #2 (permalink)  
Old 11-14-2002
Vishnu Vishnu is offline
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 (permalink)  
Old 11-15-2002
roden roden is offline
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 -
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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