I've been running Linux for more than 20 years now, and have encountered only one malware. Some jerks called me on the telephone telling me that my computer was broken. I told them where to go, and somehow, they already knew my IP address, and did something to my hard drive that totally borked it.
Otherwise than that, seeing that Linux is free of cost, and comes quite complete with all applications needed to accomplish almost any tasks. Getting help is quite easy to obtain, and costs nothing. Updates are automatic, and don't need new versions to be installed once in a while. It's always up to date.
As far as my Windows, the latest episode, I had just turned on and started Windows, and got hit by ransomware. That was in spite of my using a proxy, and address masking. I just turned it off, and didn't bother to turn on Windows again.
Because of Windows so vulnerable because of it's popularity, it's always will be a target. Linux has much better protections, and not being as popular, it's not a favorite target for attacks. I never sweat as much as the Win users for being attacked. And my expenses to upkeep the Linux OS, are nil.