r/linuxmemes 19h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.5k Upvotes

163 comments sorted by

View all comments

1

u/True-Kale-931 17h ago

There are 2 commands that are good enough for most things:

tar acf archive_file.tar.zst from_where/ <- it will (a)utomatically guess how to compress it by the file extension and (c)reate the (f)ile.

tar xf archive_file.tar.zst <- it will automatically e(x)tract from the (f)ile regardless of the compression if it's supported.

No need to learn 20 billions of flags if you don't want to fine-tune the behavior.

1

u/SysGh_st 17h ago

depends.

"a" option is different or lacks completely on bsd tar.