Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is wrong with this?

tar --diff --gunzip --file=/media/disk/filename.tgz

This is GNU tar 1.23 on Ubuntu. The complaint is gzip:stdin:input/output error.

The following just hangs and there is no apparent disk seek activity.

tar --diff fz /media/disk/filename.tgz
tar --compare fz /media/disk/filename.tgz
tar -d vfz /media/disk/filename.tgz
share|improve this question

1 Answer

up vote 0 down vote accepted
tar --compare --verbose -z --file=filename.tgz ./directory > logfile

This or some variant worked. The point of redirecting to the logfile is to reduce clutter: the 'file not found' sort of differences stay on the console, the rest go into the logfile. I do not know why the other attempts by the OP did not work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.