We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Un-tar-ing a tar file

Medium Priority
795 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
Comment
Watch Question

Top Expert 2009
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Kent OlsenData Warehouse / Database Architect
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
Sorry, copy and paste error

tar -zxvf phpMyAdmin-3.2.0.1-english.tar -C /target/directory
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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



CERTIFIED EXPERT
Top Expert 2007

Commented:
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

Author

Commented:
Nevermind i've sorted it now... i downloaded the tar.gz and ran the command on that instead :)
Top Expert 2009

Commented:
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

Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.