Easier still if you use the `a` switch for automagic compression extensions:
tar caf "compress any file"
tar xaf "xtracy any file"
tar taf "list any file"
and so on. Works with gz, xz, bz2, ... Try it!
I can't remember where I first saw it, but still useful mnemonic (with an exaggerated eastern European accent):
tar czf: "compress zee file"
tar xzf: "xtract zee file"
May 11, 2018 · 2:46 PM UTC
7
