AKA “Why zip doesn’t compress things much any more”.
I see images, audio, or video files distributed in zips far too often. You’re getting maybe a percent of compression if you’re lucky; just distribute the raw files or use a non-compressed bundle format like tar.
But then,
tar -xzvf filename
With a bad pretend accent:
Xtract
Zee
Vucking
File
The cheeky option:
tar -h
Or is it
tar --help
? Oh no…
My 1.5gb log folders disagrees. But I never tried opening a .txt in 7-zip.
Your MOM is a renamed zip!
And if not, wow, she really kept herself in shape. Very good.
She keeping them filled tight if you know what I mean
Not really. The “file types” you’re talking about are expected to contain whatever things in a very specific format.
You’re really just saying “many file types use an efficient and common compression algorithm”. Which is correct, obvious, and to be expected.
A .docx is just a zip file with xml documents in it.
What happens if I put an mp3 or an epub file in there with the xml? Is it still a word document?
Maybe, I was just giving an example. Like Java jar files are just zip files with other jars in them.
My point is that the formats we’re talking about define the content. Like it’s not “just a zip file” merely because it’s compressed. The format defines the data that may be included.
Counterpoint: what?
I don’t get it… I must be missing something about zipped files.
You’re not missing much. A few modern file types are zips with expected folder structures, especially MSOffice files. But this is nowhere near universally true.
You can open a file in your text editor of choice and if you see it start with PK (for Phil Katz the creator of the format and the original PKZIP/PKUNZIP programs) then it’s probably a zip.
Also, by the logic of the OP, all DLLs are EXEs.
OP refers to the fact that you can rename some filetypes to .zip and unpack them.
Notable examples microsoft office files (.docx) or android apps (.apk).
Counterexample are media files (mp3, mp4, jpg).
Notably, java jar files as well.
OP refers to the fact that you can rename some filetypes to .zip and unpack them.
So… you mean the zip program just rename them back? Why?
I think it makes sense from a programming view. When you have a document, you can add all the media files and pack them together as one archive. Then the program sets the filename to .docx so everyone knows that they need an office program to open that file.
For the users, all you need to know is what program can open which files. If every document would be named .zip, you would have no idea if it was a spreadsheet or slides for your presentation.
I got that from the other answers. I was just very confused why I’d have to rename them to “.zip”.
I still don’t get why it is “most” files.
I don’t think “most” applies here. Text-based files, pdf, media files and most executeable files are not .zip.
There are basically two types of files. Text files and binary files.
Most information are stored in text files so humans can easily understand it, and it’s easier to find errors, review, parse. But text storage takes more space than binary files. And many complicated softwares normally need multiple text files or data files, many of them just store them together as a zip file so that it’s easier to handle. Examples are .docx,.pptx, etc files in MS Office, try unzipping them and see what they contain. Zipping also has advantages of reducing file sizes.
OK, thanks for all the answers. I get it, a “docx” is a zip archive expected to contain something specific making it a docx. But why “most” though?
I think ‘most’ is hyperbole for dramatic effect / increased engagement. “more files than you might think are actually following the zip file structure” isn’t as punchy.
I just didn’t think of too many file extensions when I had this thought. I was also thinking of more obscure file extensions, and not the main media formats.