• JasonDJ@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 months ago

      My 1.5gb log folders disagrees. But I never tried opening a .txt in 7-zip.

      • Prison Mike@links.hackliberty.org
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Not sure what the original point was but curiously I happened to use file on a an Apple .numbers file recently and found that it was a .zip file in disguise with zero compression.

        So maybe the point was that it’s used often as a container format more often than it’s used for compression? Just my (unrelated) general computer work would also suggest this.

    • LostXOR@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      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.

  • fine_sandy_bottom@lemmy.federate.cc
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    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.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Thank God they went with file name extensions so we didn’t have to preface every source .txt file with header content to instruct the editor about what kind of content it would have.

        • cron@feddit.org
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Because both ways are used. Microsoft relies on file names, linux on the first bytes of the file.

        • Revan343@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          For shell scripts it’s because bash isn’t the only shell; if you leave out the shebang line, Ubuntu will run your script in Dash instead

        • Kairos@lemmy.today
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Nothing unless you want to serve them without some other way to see what file type they are.

          You can run bash scripts with bash.

          Don’t know what a desktop file is.

          HTML has that because webservers used to not have auto media type detection and response headers.