Solved

Un-tar-ing a tar file

Posted on 2009-07-07
10
720 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
  • 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:Kdo
Kdo 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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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.:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now