Oblig. XKCD:
tar -h
Edit: wtf… It’s actually
tar -?
. I’m so disappointedboom
tar eXtactZheVeckingFile
You don’t need the v, it just means verbose and lists the extracted files.
You don’t need the z, it auto detects the compression
That’s still kinda new. It didn’t always do that.
Per https://www.gnu.org/software/tar/, it’s been the case since 2004, so for about 19 and a half years…
Telling someone that they are Old with saying they are old…
cool people use zst
Where .7z at
.7z gang, represent
Small
dickpackage kings/queens rise up.
Obligatory shilling for unar, I love that little fucker so much
- Single command to handle uncompressing nearly all formats.
- No obscure flags to remember, just
unar <yourfile>
- Makes sure output is always contained in a directory
- Correctly handles weird japanese zip files with SHIFT-JIS filename encoding, even when standard
unzip
doesn’t
gonna start lovingly referring to good software tools as “little fuckers”
Happy cake day!
What weird Japanese zip files are you handling?
Voicebanks for Utau (free (as in beer, iirc) clone of Vocaloid) are primarily distributed as SHIFT-JIS encoded zips. For example, try downloading Yufu Sekka’s voicebank: http://sekkayufu.web.fc2.com/ . If I try to
unzip
the “full set” zip, it produces a folder called РсЙ╠ГЖГtТPУ╞Й╣ГtГЛГZГbГgБi111025Бj. But unar detects the encoding and properly extracts it as 雪歌ユフ単独音フルセット(111025). I’m sure there’s some flag you can pass tounzip
to specify the encoding, but I like havingunar
handle it for me automatically.
.tar.xz
xz is quite slow though
There’s several levels you can use to trade off additional space for requiring more processing power. That being said, I hate xz and it still feels slow AF every time I use it.
It starting 0.5 seconds slower than usual saved us all a bit of a headache as it turns out.
Yeah, it’s similar enough to tar.gz to always confuse me.
wait until you learn about
.tar.lz
.fitgirlrepack
Where’s .7z people?
ZSTD FTW
Can someone explain why MacOS always seems to create _MACOSX folders in zips that we Linux/Windows users always delete anyway?
Window adds desktop.ini randomly too
Linux adds .demon_portal files all over my computer too.
That’s not Linux doing that. It’s the demons in your hardware trying to escape. They normally don’t cause too many issues luckily, but if you don’t close the portals occasionally they can take over your system.
I mean xz/7z has kind of been the way for at least a decade now
Well, tar.zstd is starting to be the thing now.
First bundling everything in a tar file just to compress the thing in an individual step is kinda stupid, though. Everything takes much longer because of that. If you don’t need to preserve POSIX permissions, tar is pointless anyway.
Slower, yes. More compression, yes. Stupid, no. tar serves a purpose beyond persevering permissions.
Me removing the plastic case of a 2.5’ sata ssd to make it physically smaller
That’s a big drive.
When I’m feeling cool and downloading a
*.tar*
file, I’llwget
to stdout, and tar from stdin. Archive gets extracted on the fly.I have (successfully!) written an
.iso
to CD this way, too (pipe wget to cdrecord). Fun stuff.Something like
wget avc.com | tar xvf
?Almost, I think.
wget -O - http://example.com/archive.tar | tar -xvf -