I’ve been running Linux in some form since 1994. Seldom ever boot a Window machine, almost never a MAC machine.
I’ve never had malware on a Linux computer.
Now there is a risk of root kit, but that can happen with the other OS’s too.
the rootkits in linux though are very very scarce- unlike windows viruses which are everywhere- I’m far less concerned about getting viruses in linux than i was running windows (although i had an awesome program called RollBackRX that was like system restore on steroids- as it could be accessed at boot- and revert to before any virus hit- complete restore- no trace of virus afterwards)- but i got sick of doing searches- going to sites you thought would be fine- like a PC oriented site- only to get redirected to another site full of viruses and auto downloads- and constantly having to guard against viruses- and worrying about emails etc- The peace of mind with linux has been a Godsend really-
I only dual boot to windows to use photoshop and soem processing apps within photoshop for photography purposes, and to run windows only games-
I’ve been running OS X & now macOS since 2008. Never had a virus. Never had a problem.