Stanford University School of Earth Science
 
Home
News
New Users
Policies
Network File Server
Web Server
Get Help
Net Connections
Your Macintosh
Your Windows PC
Your Unix/Linux System
Other School Resources
Using Unix
   Overview
   Documentation
   Accounts
   Using the Shell
   Using X-Windows
   File Manipulation
   Net Commands
   Editing Text
   Formatting Text
   Printing
   Filters & Utilities
   Programming

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.

 


Comments?

Stanford University    |