LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2011, 06:32 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
Untarable archive.


Hi: watch this:
Code:
semoi@darkstar:~/juan$ file install_flash_player_10_linux.tar 
install_flash_player_10_linux.tar: POSIX tar archive (GNU)
semoi@darkstar:~/juan$ tar --list install_flash_player_10_linux.tar
Nothing happens. I do ctrl-D:
Code:
tar: install_flash_player_10_linux.tar: Not found in archive
tar: Error exit delayed from previous errors
semoi@darkstar:~/juan$
Why is this?
 
Old 06-27-2011, 06:45 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
How about
Code:
tar -tvf install_flash_player_10_linux.tar
 
Old 06-27-2011, 06:58 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Oh, I see! Thanks.
 
Old 06-27-2011, 08:34 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
When you don't specify the "f" option, tar reads from stdin.
 
Old 06-27-2011, 09:25 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
I figured that out when I had no internet. Then, always using -xvf, these days I was wrong and put -xfv archive. As the result was not what I expected, I remembered the meaning of -f. And I remember very well having listed tar archives. But this was a good one. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change ca.archive.ubuntu.com to ca2.archive.ubuntu.com at the command line kennymw Linux - Newbie 3 09-01-2009 03:52 AM
Archive Program CrownAmbassador Linux - Software 5 09-05-2006 04:56 AM
Where is the Old-LQ archive? kFblind LQ Suggestions & Feedback 5 02-03-2006 09:51 AM
Archive software satimis Linux - Software 4 07-02-2005 12:18 AM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 04:02 PM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration