Operating System - HP-UX
1833056 Members
2361 Online
110049 Solutions
New Discussion

Need to verify TAR switch -t ?

 
SOLVED
Go to solution
Chris Elmore
Frequent Advisor

Need to verify TAR switch -t ?

Aloha Folks,

I am trying to do a "test run" of un-tarring a very important tarball and I don't want to run the actual file extraction at this time, is it possible to use the -t (table?) switch to get verbose output only to the console screen? Basically I just want to verify that the TAR file's integrity is good. Any help is greatly appreciated.

Very Respectfully,
Chris Elmore
"Life is love and love is life"
4 REPLIES 4
Alex Lavrov.
Honored Contributor
Solution

Re: Need to verify TAR switch -t ?

yep:

tar -tvf


That's all.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Deoncia Grayson_1
Honored Contributor

Re: Need to verify TAR switch -t ?

yes tar with the -tvf will give you the information you seek

Follow this link for more info:

http://www.usc.edu/isd/doc/os/unix/commands/tar.html
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Rick Garland
Honored Contributor

Re: Need to verify TAR switch -t ?

I often use the -t switch because if somebody gives me a tarball, I do not know if it had been created with absolute pathing or relative pathing.

I always check them out!

tar -tvf

This will just display the tarball contents on screen, will not write.
Chris Elmore
Frequent Advisor

Re: Need to verify TAR switch -t ?

Thanks folks, you have been a great help. =)

Very Respectfully,
Chris Elmore
"Life is love and love is life"