Un-tar-ing a tar file

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
StephenMcGowanAsked:
Who is Participating?
 
Adam314Connect With a Mentor Commented:

tar -xvf phpMyAdmin-3.2.0.1-english.tar

Open in new window

0
 
Kent OlsenConnect With a Mentor Data Warehouse Architect / DBACommented:

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
 
omarfaridConnect With a Mentor Commented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
woolmilkporcCommented:
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
 
woolmilkporcCommented:
Sorry, copy and paste error

tar -zxvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
0
 
woolmilkporcConnect With a Mentor Commented:
... sticky fingers ...

tar -xvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
 
 
0
 
StephenMcGowanAuthor Commented:
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
 
omarfaridCommented:
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
 
StephenMcGowanAuthor Commented:
Nevermind i've sorted it now... i downloaded the tar.gz and ran the command on that instead :)
0
 
Adam314Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.