Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-23-2008, 01:15 AM   #1
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
tape contents view


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

[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 ?

Old 09-23-2008, 08:57 AM   #2
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 564

Rep: Reputation: 145Reputation: 145
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

tar -tv
and go for a coffee.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
verify tape contents helpmhost Linux - Hardware 5 01-02-2008 02:18 PM
unable to view the contents!!! a1ora0 Slackware 1 09-29-2007 01:58 PM
Reading the Contents of a Dump Tape kaplan71 Linux - General 2 11-08-2006 03:34 PM
How to view memory contents rockinsky Linux - Software 3 05-11-2006 06:09 PM
how to view contents of cd Synth218 Linux - Newbie 7 05-25-2003 07:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:06 PM.

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