Insert a tape into the tape drive.
Display the tape contents with the tar command.
$ 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. |
filename ... |
Indicates the files and directories you want to retrieve. |
The following example lists the files on the tape in drive 0.
$ tar tvf /dev/rmt/0 drwxr-xr-x 101/10 0 Jun 9 15:40 1998 reports/ -rw-r--r-- 101/10 0 Jun 9 15:40 1998 reports/reportA -rw-r--r-- 101/10 0 Jun 9 15:40 1998 reports/reportB -rw-r--r-- 101/10 0 Jun 9 15:40 1998 reports/reportC |