Solved

Un-tar-ing a tar file

Posted on 2009-07-07
10
741 Views
Last Modified: 2013-12-26
Hi,

I have a file:


client237:ExerciseTwo stevey_mac2k2$ tar zxvf phpMyAdmin-3.2.0.1-english.tar

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
client237:ExerciseTwo stevey_mac2k2$

and also in sudo

bash-3.2# tar -C zxvf phpMyAdmin-3.2.0.1-english.tar
tar: You must specify one of the `-Acdtrux' options
Try `tar --help' or `tar --usage' for more information.

Just trying to untar my phpMyAdmin file. :oS

Stephen
0
Comment
Question by:StephenMcGowan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 200 total points
ID: 24797432

tar -xvf phpMyAdmin-3.2.0.1-english.tar

Open in new window

0
 
LVL 45

Assisted Solution

by:Kent Olsen
Kent Olsen earned 100 total points
ID: 24797441

Try this:

  tar -xzvf phpMyAdmin-3.2.0.1-english.tar


On some versions of *tar*, the first option after the '=' sign has to be the "command".


Good Luck,
Kent
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 100 total points
ID: 24797539
no need for the z option since it seams not to be a compressed tar file, try

tar -xvf phpMyAdmin-3.2.0.1-english.tar
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24797568
The -C option (change to directory ....) is missing the required value (the target directory)

Try

tar zxvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24797583
Sorry, copy and paste error

tar -zxvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 total points
ID: 24797599
... sticky fingers ...

tar -xvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
 
 
0
 

Author Comment

by:StephenMcGowan
ID: 24797723
my attempts..... and fails....

bash-3.2# tar -xvf phpMyAdmin-3.2.0.1-english.tar -C /Users/stevey_mac2k2/Desktop/ExerciseTwo
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Read 6930 bytes from phpMyAdmin-3.2.0.1-english.tar
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors

bash-3.2# tar -xvf phpMyAdmin-3.2.0.1-english.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Read 6930 bytes from phpMyAdmin-3.2.0.1-english.tar
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors



0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24797785
how this file was created / transferred? What is the exact file name ? was it a compressed file which  was renamed? try to add .gz to the file name (mv file to file.gz) then try with the original command with -zxvf
0
 

Author Comment

by:StephenMcGowan
ID: 24797915
Nevermind i've sorted it now... i downloaded the tar.gz and ran the command on that instead :)
0
 
LVL 39

Expert Comment

by:Adam314
ID: 24798995
You could also use the file command which looks at actual bytes in the file to try to determine what type of file it is.

file phpMyAdmin-3.2.0.1-english.tar

Open in new window

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IE 11 + long running scripts 3 124
SSRS - Powershell 7 81
[bash] test if filenames  are same 2 14
/etc/sudoers on Solaris 2 21
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question