Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Problem extracting zipped tar file

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-30-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
Problem extracting zipped tar file

I was extracting the zipped tar file with the command
gzip -dc Sample.tar.gz |tar xf -

The tar file contained many delimited files; but lately they changed the structure of the tar file with another folder. So now all the delimited files are inside a folder called "Folder1" and the folder is packaged with tar.

When I try to run the above command I get an error like below


Code:
tar: 0511-188 Cannot create Folder1\/sample1.del: The file access permissions do not allow the specified action.

Thanks...
Sponsored Links
    #2  
Old Unix and Linux 01-30-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 586 Times in 559 Posts
Maybe it is restoring original id and permissions, so try it with 'u'.
Sponsored Links
    #3  
Old Unix and Linux 01-30-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
Can you please specify exactly where should I use the 'u' option..

Thanks,
    #4  
Old Unix and Linux 01-30-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 586 Times in 559 Posts
Sorry, I meant o, but options vary between versions
Code:
tar xof tarfile


Last edited by DGPickett; 01-30-2013 at 06:15 PM..
The Following User Says Thank You to DGPickett For This Useful Post:
asandy1234 (01-30-2013)
Sponsored Links
    #5  
Old Unix and Linux 01-31-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
It didn't help I get the same error
Sponsored Links
    #6  
Old Unix and Linux 01-31-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 586 Times in 559 Posts
Can you run t on it to see where it wants to drop files? Maybe it has an absolute path. Nice tar files are all relative paths. You might need to make a matching landing zone directory to support the problem entry.
Sponsored Links
    #7  
Old Unix and Linux 01-31-2013
Yoda's Unix or Linux Image
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 9 April 2015, 6:09 PM EDT
Location: Galactic Empire
Posts: 3,402
Thanks: 240
Thanked 1,216 Times in 1,142 Posts
Also try:

Code:
tar -b 512 -zxvf Sample.tar.gz

I found similar issues reported and the solution was to use GNU tar instead.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue in extracting Tar and Zipped file. Quesemail UNIX for Advanced & Expert Users 1 02-13-2012 02:34 AM
Zipped tar file is corrupt Pramodini Rode UNIX for Dummies Questions & Answers 2 02-25-2011 03:23 PM
Extracting from a tar file nmalencia UNIX Desktop for Dummies Questions & Answers 1 03-22-2008 06:42 AM
extracting from a tar file Reza Nazarian UNIX for Dummies Questions & Answers 4 03-24-2006 04:54 AM
Extracting a .tar file javashakes UNIX for Dummies Questions & Answers 2 04-13-2002 11:11 PM



All times are GMT -4. The time now is 11:04 PM.