tar -vczfx123 ought to do it
tar -vczfx123 ought to do it
![the background blur](https://imgs.xkcd.com/comics/tar.png?thumbnail=256&format=webp)
![](https://imgs.xkcd.com/comics/tar.png?thumbnail=1024&format=webp)
img title="I don't know what's worse--the fact that after 15 years of using tar I still can't keep the flags straight, or that after 15 years of technological advancement I'm still mucking with tar flags that were 15 years old when I started."
You're viewing a single thread.
I remember those 2 and thats all I need.
tar -extrakt ze file
tar -compress ze file46 0 ReplyTar Xtract Ze Vucking File
Edit: apparently someone else already mentioned this, oops
26 0 Replytar -extract -any -file is easier, auto detect the compression based on filename.
14 0 ReplyI think GNU tar automatically detects the compression, making
-a
unnecessary in that case.7 0 ReplyAnd
-z
.tar -xf foo.tar.{gz,xz,zstd,...}
will work perfectly fine.3 0 Reply
Nope - it was Unix not Linux. The minus makes the command invalid on many Unix versions of tar (though most modern BSD versions allow it)
5 0 ReplyGonna blow up then I guess
5 0 Reply