Checking contents of a tar archive
Last revision July 20, 2004
Additional topics:
|
To see what files are included in your tar archive, use the t operation. It is recommend to add the v option to get a verbose listing with file date and size, as well as name.
For example, if you had an archive in the file /scr1/files.tar on disk, you could list the contents of that archive with
tar tvf /scr1/files.tar > tarfilelist
In this example, you have redirected the output (the listing of files) to a disk file so it won't just fly by on your screen and you can study or print it at you leisure.