LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Untarable archive. (https://www.linuxquestions.org/questions/linux-newbie-8/untarable-archive-888646/)

stf92 06-27-2011 05:32 PM

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?

chrism01 06-27-2011 05:45 PM

How about
Code:

tar -tvf install_flash_player_10_linux.tar

stf92 06-27-2011 05:58 PM

Oh, I see! Thanks.

MTK358 06-27-2011 07:34 PM

When you don't specify the "f" option, tar reads from stdin.

stf92 06-27-2011 08:25 PM

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.


All times are GMT -5. The time now is 09:37 PM.