this post was submitted on 20 Jun 2024
24 points (100.0% liked)

Operating Systems

3799 readers
1 users here now

All things operating system related, from Windows to Mac to Linux distros and the more obscure.

Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

I didn't realize this community existed and posted my other thread about linux distros in another community, so I'll try rectifying that here.

I'm trying to learn as much about linux as a desktop system as I can before I dive in to installing a distro on my computer. I do have a tiny bit of familiarity with the terminal from having servers running Debian, but those I get a lot of help with. the distro I've chosen is Bazzite, which is based(?) on Fedora if I recall right. I liked the stuff it comes with (I love video games) built in and I like the idea of the atomic desktop setup.

so, what are your tips and tricks for a new linux user? what about outside resources? I've been doing as much digging for articles and videos as I can, but I thought asking the community might be a good idea too. I'm trying to compile these resources for myself and my partner, so that we have stuff to learn from and reference.

as a final question, what got you into using linux over windows or mac?

thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[–] Laser@feddit.de 2 points 5 months ago* (last edited 4 months ago) (1 children)

I don't think that's what's happening. There's no hard requirement for cat to read everything straight into memory. It can send data once it's available, and the receiving process can read it as fast as it wants. There are cases where this might be more clear: Let's say you have a big video file that you want to convert to something that only supports like y4m input and is not in ffmpeg. A common way is something like ffmpeg -i infile -f yuv4mpegpipe - | encoder --y4m outfile - I'm pretty sure ffmpeg won't read the whole infile into memory, nor will it store the whole y4m representation in memory. Instead, it will decode infile as necessary and push into the pipe at the speed the encoder can handle.

But yeah, I remember something about tar using libraries for compression being more efficient that piping its output to a compressor. So it's still the better route, but probably not as much better as you think.

[–] undefined@links.hackliberty.org 1 points 4 months ago

Good points. Yeah, rethinking it it doesn’t make sense at all that it would read the whole thing into memory.