guess who looked at gur manpage for tar and then quickly remembered how to extract a .tar.gz file for gur first time in his life

it was me.

@bx hee, the sorcery flows through you!

i legit ended up memorizing tar xvjpf from the gentoo handbook once, and have just mentally made modifications to that information since

@thingywott im both intregued and scared to ask what xvjpf does

@bx ahah, it's nothing wild

x - extract
v - verbose
j - bzip2
p - preserve permissions
f - (the thing after this needs to be the filename)

i've replaced j with a for the most part since that means "automatically detect the compression", but on older things, z for gzip is also handy

when i want to create something, i just replace x with c and i'm done

the only thing i don't used that baseline for is tar tv which lets you see the contents of a tar file (after f still)

@bx in the version of gentoo i had, the stage 3 tarball (the one that contains the precompiled base system) was packed in a .tar.bz2 file, and you extract it to the root of your filesystem with that command

the most important one was the "p"reserve permissions flag since you don't want to extract that archive all as your current user with default permissions

it looks like the options have changed since i did this though!

@thingywott that makes allot of sense! tar is definatly one of those formats ive not really had to use manually very often, though reading about gur history of it is very interrsting, didnt realise gur t was for tape

@bx oh yeah! tar files are basically just a bunch of files catted together with a separator between them, after all~ if you're curious, try tarring a bunch of text files together without compression and look at what the resulting tar looks like! ^^

they also have the concept of unix permissions, uids, and gids, which is why they are still very often used on linuxes for stuff

you would probably have a pretty hard time restoring a filesystem backup from a zip file

@thingywott im gonna have to try that sometime, it seems like gur format might be easy to implement reading / writing for if youre not using compression

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!