System Administration Guide: Devices and File Systems

ProcedureHow to List the Files on a Tape (tar)

  1. Insert a tape into the tape drive.

  2. Display the tape contents.


    $ tar tvf /dev/rmt/n
    
    t

    Lists the table of contents for the files on the tape.

    v

    Used with the t option, and provides detailed information about the files on the tape.

    f /dev/rmt/n

    Indicates the tape device.


Example 28–5 Listing the Files on a Tape (tar)

The following example shows a listing of files on the tape in drive 0.


$ tar tvf /dev/rmt/0
drwxr-xr-x   0/0        0 Jul 14 13:50 2010 reports/
-r--r--r--   0/0   206663 Jul 14 13:50 2010 reports/reportC
-r--r--r--   0/0   206663 Jul 14 13:50 2010 reports/reportB
-r--r--r--   0/0   206663 Jul 14 13:50 2010 reports/reportA