r/linuxquestions • • Aug 21 '26

Why does Linux not need anti-virus software?

I'm in the market for a new gaming laptop and wanted to avoid AI products like Copilot and realized Linux would be my only option. So I'm trying to learn as much about Linux Mint as possible to see if it would be right for me. I'm really close to pulling the trigger but I don't understand why Linux doesn't need anti-virus/malware software. All the answers I can find seem to just boil down to "Linux isn't used by enough people to justify the time it would take to create a virus or malware" or "because you approve everything you download". As someone who has used a PC their entire life, these answers genuinely don't make sense to me and I feel like maybe I'm missing something about either the nature of linux or the nature of viruses/malware and how they work. Everyone on forums who ask this question seem to just accept these answers but no one explains why either one prevents the need for antivirus/malware software.

From my perspective as a PC user, I already approve what I download so this answer doesn't make intuitive sense to me. I would never connect a PC to the internet without some sort of anti-virus software, privacy software, malware protection, etc. even though I still know what I'm downloading and I'm using reputable websites (and my AVG software is still catching stuff all the time). And the idea that someone wouldn't make a virus or malware to target a group of people (albeit a minority) who are the most likely to not have software on their computer to combat it seems like the exact group you'd want to target particularly for private data mining.

It also seems, from what I've been reading about Linux that you can seriously screw up your system by downloading something incorrectly or that isn't up to date, so the idea that "you can't get viruses or malware because you approve what is downloaded" when so many of the user tips with regard to Linux are "back up your system constantly because you can easily screw up your system by downloading something that's not fully patched". These two concepts seem counterintuitive, especially for an OS that will require downloading a lot of third party programs to be able to run things like games or windows-based programs.

I'm clearly missing something here because neither of the reasons I've seen people give for why Linux doesn't need this stuff is really making sense to me. I was hoping someone in this reddit might be able to explain this in a way a lifelong PC user without any sort of computer background can understand. The idea of not having anything but a firewall on a computer with Linux installed on it makes me very uncomfortable but I'm willing to accept that this is a bias from using PCs and I'm willing to be convinced otherwise as long as I can understand the reasoning behind it.

251 Upvotes

228 comments sorted by

View all comments

Show parent comment

37

u/anto77_butt_kinkier 16.04 was peak Aug 21 '26

I don't have any forensics certs, but I have worked for years with repairing computers, among many other electronics, and building systems, and I can confirm that windows just does weird shit sometimes.

Windows isn't repeatable or even predictable in some cases. The shop I worked at built a set of identical machines for a customer who wanted computers for.. I think it was a pizza shop? That part doesn't matter, but essentially we built 4 computers. Same motherboard, SSD, case, power supply, CPU, heat sync, wifi adapter, etc. hell, even the fans were the same. We just ordered multiples of everything.

So, we built the systems. Aside from the specific serial numbers, the computers were indistinguishable. We installed windows onto one of the PCs, installed the software the customer wanted as well as our remote support software, and cloned the drive to each PC. Well, all of them worked fine except for one of them. One of them would crash after being powered on for a few min. We tried memtest, it passed, we tried running memtest again overnight, it still passed. We tried a drive from a different machine, and it worked fine. We tried the drive with the crashing issue in a different PC, and it worked fine. It was that specific windows drive on that specific computer that just, refused to stay working. We had no idea why, and it's still one of the greatest mysteries of that tech shop. I can't remember if we tried updating the firmware, but I remember spending a day trying to figure out why that one combination wouldn't work, before just re-imaging the drive again, and then discovering that it still crashed. It was only with that one drive in that one computer that windows would throw a bsod. Worked fine everywhere else, but not on that PC. We ended up just switching the drive with one another computer and we never had any issues with it.

Windows is just spooky sometimes. It gives off WH40K vibes, where that computers machine spirit wasn't happy. I guess we just didn't follow the right rituals when plugging in the data drive, and that made the machine spirit angry at that specific sad XD.

Well, this comment adds nothing helpfu and is a lot longer than I thought it would bel, but it's a fun story and I don't want to delete it, so here it stays.

6

u/AdCute1311 Aug 21 '26

Have a similar story:

We had 2 spare machines that came back to us from former users. One of them just wouldn't boot. Tried everything, no obvious diagnosis.

So we just pulled out the two ram sticks, replaced them with the two sticks from an identical machine with a broken screen - now it worked. Not too notable so far. But we put the old RAM into the donor just to "store" it there and for the luls tried booting. Well guess what, machine worked just fine. Then we got curious and played around with different sticks in different slots.

Turns out one of the two machines did not like one specific kit in one specific slot. It did boot with that stick in its other slot. The other machine would boot with that stick in any slot. Why? No idea, never seen anything like it before or since. Didn't take the testing further, so I can't for sure say it was Windows.

But Windows just has issues like that. Identical machines installed with identical images and somehow you get wildly different experiences and issues without an obvious reason for it. Add to that a bunch of different models and various deployment states over time and troubleshooting becomes a nightmare. Why did Windows update/OneDrive/whatever break on this specific machine in this specific moment? Good luck brother lol

5

u/dglsfrsr Aug 21 '26

That is not a Windows issue, it is a marginal DDR layout on the motherboard. Good quality DDR all behaves within a specific window for signal termination and timing, and a motherboard that has a marginal trace on one data lane will work with 95% of DDR sticks, but will fail when its combined 'intolerance' meets a DDR stick with timing at the edge of the opposite timing. So a marginal design, coupled with natural variation in manufacturing tolerance, will get you exactly what you have seen in this case. I know this because I have been on the architecture team for five different ASICs, and in one of those cases, we had a chip come back with marginal defects internally, that we could compensate for by messing with traces on the motherboard. Purposely mess with the motherboard layout to make the chip talk to the DDR sticks. That was a fun one to debug.

7

u/SteakDouble Aug 21 '26

That's funny and unironically true. Similar story happened with my laptop. Win 11 would randomly crashed into BSOD since 2021 I brought this laptop. Then it became more and more frequent a few months ago up to 5 times a day. Chkdsk and Crystaldisk didn't find anything wrong with the SSD. Minidump pointed out several unspecific things as the culprit. Windows memtest always crashed several hours later. Swapped RAM with the new ones - still crashed.

Then I installed Manjaro. It never ever crashes so far, even though I sometimes run it a few days straight without turning it off.

I think Windows spirit just being cranky, wanted a new hardware. But then I put a penguin spirit instead.

3

u/SolasVeritas Aug 21 '26

lol, that’s so true. Although I feel that old windows- like 98 and XP could be extra petty and vengeful, while 10/11 are kind of control freaks but less aggro toward the user.

When I was wrestling with getting my hardware and software to play nice on XP it was like wrestling a pig. Yeah I would win eventually, but it was exhausting, took a long time, and I could tell the pig hated me.

Linux is definitely not always easy on some hardware, but I don’t get mysterious vengeful ghost in the machine vibes, at least. I just get predictable problems that are usually diagnosable and solvable, with logical reasons, if not quick and easy to fix sometimes.

2

u/oginternetuser Aug 21 '26

I've had computers run like garbage on windows and fine on linux. All hardware passes test all drivers installed properly clean install. I could not tell what the problem is.

3

u/anto77_butt_kinkier 16.04 was peak Aug 21 '26

Yeah, for computer repairs I have a Linux.deive that I boot off of so I can see if any broken/unintended/non functional behavior is hardware that's actually broken, or if it's just windows bullshit. There's a not insignificant amount of windows bullshit.

1

u/jaysprenkle Aug 22 '26

Probably hardware. A long time ago I diagnosed a memory issue that was interesting.

A normal read and write to a specific memory cell worked fine. If the processor used stack push-pull instructions instead of normal data read-write it failed. Push was a single processor instruction that wrote two bytes in succession. Two write instructions had a fraction of a millisecond more time between writes to the cell. That fraction was enough to make it fail.

In practice it would only fail if a program just happened to randomly be assigned that memory cell for its stack area. Random and completely maddening.

1

u/sTiKytGreen Aug 22 '26

Or your drive connection was physically a bit loose and was overheating or something...

1

u/52buickman Aug 23 '26

I've had to manage Windows admins in past years. I was always amazed at their approach towards fixing problems. If T&E doesn't work, they relied on the 3 Rs: reboot, reinstall the app and reinstall the OS. They never could effectively analyze where the issue originates.

A decent *nix admin could effectively analyze a repeatable issue and if source code was available, could fix the code and recompile it. No reboot needed (outside of bug in the kernel or swap filling up). Reinstallation of the app or the OS was according to deployment policy, not according to ignorance.