LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   tape contents view (https://www.linuxquestions.org/questions/linux-general-1/tape-contents-view-671716/)

Ammad 09-23-2008 12:15 AM

tape contents view
 
HI,

can i view all file/contents on Tape drive? when i type it shows only single file, where as there are two files on disk

Code:

[root@Server ~]# tar -tvf /dev/nst0
-rw-r--r-- root/root 6957088970 2008-09-11 21:36:31 daily-09-11.tar.gz


[root@Server ~]# tar -tvf /dev/st0 fsf 1

[root@Server ~]# tar -tvf /dev/nst0
-rw-r--r-- root/root 8957088970 2008-09-14 11:00:28 week-09-14.tar.gz

Can i list all files using single command ?


thanks

ChrisAbela 09-23-2008 07:57 AM

The -f Option on the tar command specifies a file. By default tar (i.e. tape archive) assumes a tape. Simply do not include the -f option

Quote:

tar -tv
and go for a coffee.

Chris


All times are GMT -5. The time now is 08:42 AM.