6 ms·
I don't understand the XKCD. What's the joke?
by anon_d 13y ago
I don't understand the XKCD. What's the joke?
- paganel 13y agoThere are people (myself included) who cannot remember how exactly to use tar, the Unix command. For me it always goes like this: "Is it 'tar -fzhf... ' or 'tar -vgsf...'? Ok, I'll google it again, just this one time, promise".
- tedks 13y agoDoesn't 'tar xf' work for practically everything? I just checked and it works for lzma, bz2, and gz.
- ISL 13y agoI don't think it used to? I remember needing to explicitly state tar -xjf for bz2 stuff. I do it now reflexively. If it's handled correctly by -xf, that's awesome!
- tjr 13y agoRemember, a tar file need not be compressed. `tar xf' will certainly work fine on `foo.tar'.
- LeonidasXIV 13y agoYes, it does, but only GNU tar. I was using NetBSD when I stumbled over the fact that it couldn't 'tar xvf' my foo.tar.gz. OTOH, I always have to look up unzip, because I fear that there is some option that I forgot. Well, most of the time I use a GUI for Zip, since they often decompress all over the folder unlike tars which are mostly contained in one single folder.
- Radix_ 13y agoDon't you mean 'man tar'? The most common usage is right in the intro. I don't use it much but always have to do the same...
- vidarh 13y agoI remember 3 tar incantations (to created a compressed archive, list, or uncompress one) that I treat pretty much as unchangeable commands. Probably should just alias them. Everything else I'll look up..