this post was submitted on 18 Dec 2024
69 points (87.1% liked)

Linux

48665 readers
519 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

There I said it !

you are viewing a single comment's thread
view the rest of the comments
[–] Malfeasant@lemm.ee 10 points 3 days ago (1 children)

How do you propose zcat tell the difference between an uncompressed file and a corrupted compressed file? Or are you saying if it doesn't recognize it as compressed, just dump the source file regardless? Because that could be annoying.

[–] interdimensionalmeme@lemmy.ml 2 points 3 days ago (1 children)

Even a corrupt compressed files has a very different structure relative to plain text. "file" already has the code to detect exactly which.

Still, failing on corrupted compression instead of failing on plaintext would be an improvement.

[–] Malfeasant@lemm.ee 4 points 2 days ago (1 children)

What even is plain text anymore? If you mean ASCII, ok, but that leaves out a lot. Should it include a minimal utf-8 detector? Utf-16? The latest goofy encoding? Should zcat duplicate the functionality of file? Generally, unix-like commands do one thing, and do it well, combining multiple functions is frowned upon.

I wouldn't call all this hoop jumping to reading common log files "doing it better".

This is exactly the kind of arcane tinkering that makes everything a tedious time wasting chore on linux.

At this point it's accepted that text files get zipped and that should be handled transparently and not be precious about kilobits of logic storage as if we were still stuck on a 80386 with 4 megs of ram.