LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-23-2008, 12:15 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
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
 
Old 09-23-2008, 07:57 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

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


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


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration