show differences between file and file in (compressed) tar archive

Posted by Kyss Tao on Super User See other posts from Super User or by Kyss Tao
Published on 2012-04-02T16:41:12Z Indexed on 2012/04/02 17:33 UTC
Read the original article Hit count: 255

Filed under:
|

Say I have unpacked a gz-compressed tar file, and do not remember what changes I made to the unpacked files, or I archived a folder a while ago and want to know what has changed to the files since.

I can use tar -zd to get an overview. Then, say it shows me file foo has changed. How can I see the changes in this file, i.e. the difference between the file on my file system and the (older) file in the archive (ideally in vimdiff, but diff output would be fine too)?

© Super User or respective owner

Related posts about diff

Related posts about vimdiff