floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

691
active users

Sergey Bugaev

Reminder that GNU tar(1) has long options support, so instead of 'tar zxvf' or whatever line noise you can do

tar --extract < my-archive.tar.gz

@bugaevc what helped me remember it is saying the arguments like this

“Xtract Ze Vucking File”

🙃

@bugaevc I would not recommend to get used to that because it’s not POSIX. It will not work with any other version of tar. Remembering x for extract is not that hard.

@js evidently it *is* that hard, otherwise this wouldn't be such a meme 🙂 (cf. the xkcd). And extensions exist so you can make use of them (when you can).

But yeah, if you're writing portable scripts and limiting yourself to POSIX, maybe don't use that.

@bugaevc I mean, tar x <foo.tar is literally a valid tar command 🤷‍♂️.

But of course, you can always use ofarc -x foo.tar or ofarc --extract foo.tar. Also works for tgz, zip and lha!