LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 05:32 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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, 05:45 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,174

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

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

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

Original Poster
Rep: Reputation: 76
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 02:52 AM
Archive Program CrownAmbassador Linux - Software 5 09-05-2006 03:56 AM
Where is the Old-LQ archive? kFblind LQ Suggestions & Feedback 5 02-03-2006 08:51 AM
Archive software satimis Linux - Software 4 07-01-2005 11:18 PM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 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
Open Source Consulting | Domain Registration