Checking tarball contents before extraction

When you are about to unpack a tarball you didn't create it's a good idea to run the -t flag instead of just assuming it's been packed in a sensible way. tar -tzf foo.tar.gz This lists all of the files in the tarball so you can be sure…

Extracting a single file from a tar backup

Like an idiot I accidentally overwrote a file for this blog when uploading some other stuff; accidents happen. Anyway, I have backups (you do have backups right?) and I needed to grab a single file out of the latest tar. Fortunately this is really straight forward and rather than unpacking…