System Administration Guide: Devices and File Systems

ProcedureHow to List the Files on a Tape (tar)

Steps
  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 27–4 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 1001/10       0 Oct  7 08:18 2003 reports/
-r--r--r-- 1001/10     382 Oct  7 08:18 2003 reports/reportA
-r--r--r-- 1001/10     382 Oct  7 08:18 2003 reports/reportB
-r--r--r-- 1001/10     382 Oct  7 08:18 2003 reports/reportC