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”
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.Ah, that’s pretty cool. I’m not sure I know of that program. I do know a little vocaloid though, but I only really listen to 稲葉曇(Inabakumori).
I know inabakumori! Their music is so cool! When I first listened to rainy boots and lagtrain, it made me feel emotions I thought I had forgotten a long time ago… I wish my japanese was good enough to understand the lyrics without looking them up ._. I’m also a huge fan of Kikuo. His music is just something completely unique, not to mention his insane tuning. He makes Miku sing in ways I didn’t think were possible lol
I get you, I want to learn more Japanese. I only understand a very small amount at this point. I don’t have any Miku songs that I have really wanted to listen to, but that could change. I might check out Kikuo then. Also I love the animations Inabakumori release with their songs too. They have some new stuff that’s really good if you haven’t checked it out yet.
The same thing with zip, just use “unzip <file>” right?
I’m an
atool
s kinda personLooks cool, I’ll check it out
Where .7z at
.7z gang, represent
When I was on windows I just used 7zip for everything. Multi core decompress is so much better than Microsoft’s slow single core nonsense from the 90s.
Small
dickpackage kings/queens rise up.
Yeah, 7z is the clear winner.
It’s much slower to decompress than DEFLATE ZIP though
cool people use zst
You can’t decrease something by more than 100% without going negative. I’m assuming this doesn’t actually decompress files before you tell it to.
Does this actually decompress in 1/13th the time?
.tar.gz
, or.tgz
if I’m in a hurry…or shipping to MSDOS
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.
Yeah, those tend to be pre-folder settings for the File Explorer.
Like View options, thumbnails and such.It’s been a while for me, but I think there was something specially for thumbnails too. You might find one if you go into the folder options and set a folder to optimized for pictures/videos and add some to it.
You’re thinking of the
thumbs.db
files: https://en.wikipedia.org/wiki/Windows_thumbnail_cache#Thumbs.db
Huh, never noticed that. Probably always thought that was just part of the program/files needed.
this is a complete uneducated guess from a relatively tech-illiterate guy, but could it contain mac-specific information about weird non-essential stuff like folder backgrounds and item placement on the no-grid view?
They’re Metadata specific for Macs.
If you download a third party compression tool they’ll probably have an option somewhere to exclude these from the zips but the default tool doesn’t Afaik.Thanks! Hmm, never thought of looking at 7zip’s settings to see if it can autodelete/not unpack that stuff. I’ll see if I can find such a setting!
You can definitely check, but I would expect the option to exist when the archive is created rather than when it’s extracted
Because Apple always gotta fuck with and “innovate” perfectly working shit
Windows’s built-in tool can make zips without fucking with shit AND the resulting zip works just fine across systems.
Mac though…Mac produced zips always ALWAYS give me issues when trying to unzip on a non-mac (ESPECIALLY Linux)
“Resource forks” IIRC, old stuff. Same for the .DS_Store file.
For just $12.99 you can disable this https://apps.apple.com/us/app/blueharvest/id739483376
MacOS has two files per file, so the extras need to be stored somewhere.
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 -
Didnt think this would ever work
This is what we call UNIX-way
TAr stands for Tape Archive. Tapes store data sequentially. Downloads are done sequentially.
It’s really just like a far away tape drive.
I usually suppress output of either wget (-q) or of tar (no v flag), otherwise I think the output gets mangled and looks funny (you see both download progress and files being extracted).
7z gang joined the chat…
.tar.7z gang (probably not a good idea)
.tar.xz is. Or .tar.lzip.
.tar.7z.zip.bz2 gang unite
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.
Use an archiving format that does both at once then, preserving whatever tar use cases has and compressing. The two steps are stupid, no arguing against that.
I’m the weird one in the room. I’ve been using 7z for the last 10-15 years and now
.tar.zst
, after finding out that ZStandard achieves higher compression than 7-Zip, even with 7-Zip in “best” mode, LZMA version 1, huge dictionary sizes and whatnot.zstd --ultra -M99000 -22 files.tar -o files.tar.zst
Mf’ers act like they forgot about zstandatd
Can we please just never use proprietary rar ever. We have 7z, tar.gz, and the classic zip
.tar.gz
ZSTD FTW
Damn you guys borrowing consonants from polish names now?
Wut?
I think it’s a joke about how people from Poland have a lot of consonant letters in their name, particularly the letter Z. This appears strange to non-poles, and thus became the subject of many jokes. So ZSTD looks a little bit like a Polish name in the sense that it’s made up of many consonant letters, including a Z.
More examples of people making fun of Polish names:
This sent me down a Polish rabbit hole I’m very happy to have fell into
Me removing the plastic case of a 2.5’ sata ssd to make it physically smaller
That’s a big drive.