On Linux, system-related files are owned by the “root” superuser. If infected, viruses can be easily removed as they can only affect the user account where they were installed, and they do not affect the root account (if the computer has one – Ubuntu does not normally use a root account, most other Linuxes do).
Why is there less malware on Linux?
The use of software repositories significantly reduces any threat of installation of malware, as the software repositories are checked by maintainers, who try to ensure that their repository is malware-free. Subsequently, to ensure safe distribution of the software, checksums are made available.
Why is Linux considered more secure?
Linux is the Most Secure Because it’s Highly Configurable
Security and usability go hand-in-hand, and users will often make less secure decisions if they have to fight against the OS just to get their work done.