Mar 16, 2018

Modern tar recognizes the file format

One command works with any supported compression method.
  • tar xf archive.tar.xz
  • tar xf archive.tar.gz
  • tar xf archive.tar

etc.