758
tar -vczfx123 ought to do it
(imgs.xkcd.com)
Post funny things about programming here! (Or just rant about your favourite programming language.)
tar -extract -any -file is easier, auto detect the compression based on filename.
I think GNU tar automatically detects the compression, making
-a
unnecessary in that case.And
-z
.tar -xf foo.tar.{gz,xz,zstd,...}
will work perfectly fine.