News for hackers. Stuff that matters.
Re:The sad state of sysadmin in the age of containers by shanemhansen on Wednesday April 22, 2015 @10:14AM (#9420537)
I usually get tar right on the first try. I only have to remember 2 variants (extract file and create file):

    tar xf ./foo #automagically works with bz2 and gz files
    tar cf /tmp/out.tar . #add z for compression
Re:The sad state of sysadmin in the age of containers by Gracana on Wednesday April 22, 2015 @10:51AM (#9420827)
That second one will create a tarbomb[1], which isn't necessarily wrong and maybe it's what's right for your application, but for more general usage this is friendlier:

    tar cf <mydir.tar> <mydir>
[1] http://www.linfo.org/tarbomb.html
Re:The sad state of sysadmin in the age of containers by markrages on Wednesday April 22, 2015 @10:59AM (#9420896)
And some of those switches are just for convenience, e.g.:

tar c . | gzip > /tmp/out.tar.gz

Re:The sad state of sysadmin in the age of containers by TeMPOraL on Wednesday April 22, 2015 @10:32AM (#9420672)
Oh cool. So that works? I've already memorized:

    tar -xvvzf foo.tar.gz
    tar -xvvjf bar.tar.bz2
    tar -xvvf  baz.tar
Thanks!