I know that you can use
-W when creating an archive, but how do you verify and already-created archive?
tvWf says it's not a valid tar archive?
$ mkdir tmp $ echo asdkfjh > tmp/a $ echo qweroiu > tmp/b $ ls tmp $ tar cvf archive.tar tmp tmp/ tmp/a tmp/b $ tar tvWf archive.tar tar: This does not look like a tar archive tar: Skipping to next header tar: VERIFY FAILURE: 1 invalid header detected tar: Error exit delayed from previous errors
Same thing happens with both tar 1.15 (which is the system default on centos 5) and 1.26 (which is the newest version from gnu).