this post was submitted on 08 Apr 2025
335 points (96.4% liked)

linuxmemes

24389 readers
403 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 33 comments
    sorted by: hot top controversial new old
    [–] gandalf_der_12te@discuss.tchncs.de 64 points 5 days ago* (last edited 5 days ago) (3 children)

    zip is better than tar.gz for some applications though.

    notably, individual files can be read from a zip archive without unpacking the whole archive, different than tar.gz files.

    tar.gz files are only better if you pack and unpack the whole archive at once, but even then, they don't have much advantage. the major advantage is that you can pipe the output of tar creation over the network to another computer who decompresses the tar immediately, thus transferring a folder. zip has index at beginning/start, so it requires seek when writing or skip when reading, so it can't be streamed.

    [–] piefood@piefed.social 14 points 5 days ago

    One thing that I find useful is that you can do --filesync with an existing zip, which means it only updates the files if the date/size don't match. This saves a bunch of time on large archives that don't need to be created from scratch every time.

    [–] Ziglin@lemmy.world 10 points 5 days ago

    But afaik with many files in an archive a tar.gz manages higher compression ratios since each file isn't compressed individually. It probably isn't relevant unless archiving a large amount of data though.

    Does .zip have other advantages though? I don't often need just one file from an archive anyway.

    [–] DaforLynx@lemmy.zip 11 points 5 days ago (1 children)

    Where does 7z fit into all of this?

    [–] SoftestSapphic@lemmy.world 18 points 5 days ago

    I think that also works like a zip

    honestly most of the time if I'm sending an archive, my main goal is to bundle the files, not ideal compression. zip is the most compatible format

    [–] SnotFlickerman@lemmy.blahaj.zone 41 points 5 days ago (2 children)
    [–] chronicledmonocle@lemmy.world 36 points 5 days ago (3 children)

    Oddly, Windows can natively handle .tar.gz now. Found that out the other day.

    [–] SnotFlickerman@lemmy.blahaj.zone 15 points 5 days ago (2 children)

    Probably part of that Windows Subsystem for Linux

    [–] muntedcrocodile@lemm.ee 28 points 5 days ago (1 children)

    At what point is windows just gonna become Linux with a proprietary frontend.

    [–] zzx@lemmy.world 14 points 5 days ago (2 children)

    That idea has been thrown around A LOT.

    I don't think it'll ever happen tbh

    [–] abcd@feddit.org 6 points 5 days ago (1 children)

    That’s definitely not going to happen. One of the few things Windows is doing right is backwards compatibility. Have 30 year old exe? It usually just runs fine. In my experience a lot of business logic relies on this compatibility. It would be stupid from a business standpoint to break this compatibility. It would upset a lot of paying customers.

    But wait a second. I’m speaking about Microsoft. All we wanted was a Windows 7 with a modernized GUI. And we got Windows 10 with Cortana, multiple Control panels, redundant settings that contradicted each other. We got Windows 11 with ads everywhere, Copilot, enforced MS accounts and so on.

    It would perfectly make sense to switch to Linux. They could fire a lot of devs. I’m sure they would save a lot of money for a couple of seconds.

    Obviously they don’t give a shit about customers, so this sounds like a normal thing Microsoft could do for short term gains.

    [–] smee@poeng.link 3 points 4 days ago

    All we wanted was a Windows 7 with a modernized GUI.

    What? No, keep it the same but keep on supplying security patches. The whole "modernized GUI" was what gave us the wonderful new GUI of Windows 8!

    [–] wreckedcarzz@lemmy.world 5 points 5 days ago* (last edited 5 days ago) (1 children)

    MS: you mean we can fire 95% of the windows devs, and nerds on the internet will just do the work for us?

    MS: we love Linux now!

    E: stonks πŸ“ˆ

    [–] zzx@lemmy.world 5 points 5 days ago

    They'd lose their moat overnight, not gonna happen

    [–] LaggyKar@programming.dev 7 points 5 days ago

    No, they just include libarchive in Windows

    [–] Ziglin@lemmy.world 6 points 5 days ago

    It also came with tar preinstalled in cmd for a while before supporting it in their GUI.

    [–] abbadon420@lemm.ee 1 points 5 days ago

    Yeah, but it's a two step process. You first unpack the gz, than unpack the tar

    [–] henfredemars@infosec.pub 8 points 5 days ago (1 children)

    It can always be a weird self-extracting shell script.

    [–] AkatsukiLevi@lemmy.world 9 points 5 days ago

    I never trusted those

    Just as long as it isn't a .rar.

    [–] blazeknave@lemmy.world 9 points 4 days ago (2 children)

    Bc Linux is a .tar nation?

    Thanks, i didnt see that. Love it

    [–] gerryflap@feddit.nl 13 points 5 days ago (1 children)

    Not sure what the issue with zip files is? They're supported on basically every device and afaik are not a proprietary format or anything. Seems better to me than rar or 7z. Tar.gz is also fine, but * don't really see why one would care

    [–] Flax_vert@feddit.uk 12 points 4 days ago

    I think it's a pun. What in tarnation

    [–] TabbsTheBat@pawb.social 15 points 5 days ago (1 children)

    Mm zips :3

    I've had quite a few, cause a lot of mods for games come in zip files x3

    see my comment above; it's way more efficient to read individual files out of a zip archive.

    [–] onlinepersona@programming.dev 9 points 4 days ago (1 children)

    What am I missing? What's wrong with zip? Should tar.gz be used instead?

    Anti Commercial-AI license

    [–] ArcaneSlime@lemmy.dbzer0.com 26 points 4 days ago* (last edited 4 days ago) (1 children)

    Goddammit, that's a good one 🀣

    Thanks!

    [–] muhyb@programming.dev 5 points 5 days ago

    Considering even Windows can open it without any third-party program, I would say it's quite useful.

    [–] ExLisper@lemmy.curiana.net 1 points 5 days ago

    A zip file? Thanks, that will fit in the trash bin quite nicely.