Linux and Unix users, this includes Mac OS X, say that their operating system is more secure than Windows. Windows users say it's because most people use Windows, and that Windows is a bigger target for the people that like to spread malware.
According to Wikipedia.org "In September 2008 Microsoft CEO Steve Balmer admitted that 60% of web-servers run Linux versus 40% that run Windows Web Server." Here's the link: http://en.wikipedia.org/wiki/Linux. That means that the main target should be Linux based servers. Another wikipedia page, http://en.wikipedia.org/wiki/Google_platform, says that Google's web-servers use a custom version of Linux. So why isn't 60% of the internet and especially Google crashing because of malware?
Because they aren't the biggest target. Police will tell you that the main homes that thief's break into, are the homes that are the least secure. Malware used to be mostly about pranks. Now it's more about identity theft, stealing passwords and credit card account information, and using an unknowing victims computer in a botnet. Like the thief's breaking into people's home it's criminal activity for gain. Windows is the biggest target because it's inherently the most vulnerable. It's because Windows was not ORIGINALLY built with the need for security in mind.
Windows was not built for networking nor for multi-user usage. It was originally designed as a stand alone, single user platform. Unix which Linux is a clone of, was designed for networking and multi-user usage. Also it was built with "permissions" in mind. On Windows 95, any user could do what any other user could do. With Windows XP, Windows became a little more secure by having an "Admin" level and lower levels of permissions for other users. Administartor or Admin meant that you had total control of Windows. The problem was that all users by default were set to "Admin" level. So if you were logged in with Admin level control and someone broke into your system through the internet, they could have Admin or total control of your system. Or if your system was infected with malware, while you were logged in with Admin level access, the malware could have total control to do anything in your system.
Windows Vista and 7 have greatly improved security. One way that security is improved is by making the default user setting set below Admin. Also users are asked if they really want to do certain system changes and often asked for a password to confirm it. However Windows is still less secure than Linux. No operating system is 100% secure or safe. It's a just the same question as in home security. Which is more secure and which is less secure. Are you more secure than your neighbor so that the burglar will leave you alone and head to the guy next door? Well if you are using Linux and the guy next door is using any version of Windows, you are certainly more secure than he is.
One example is from the CanSecWest 2008, PWN2OWN 2008 contest. Here's a link to an article about it: Mac OS X Hacked - Vista SP1 Hacked - Ubuntu Linux Survives Unscathed. In case you don't go to the article it tells, during the PWN2OWN 2008 hackers were challenged to break into computers running Mac OS X (Unix), Windows Vista SP1, and Ubuntu 7.10 (Linux). OS X was the first to fall. Vista was the second to be broken into. Ubuntu 7.10 was never hacked.
Now Windows COULD be made to be made MORE secure than any other operating system. But I believe it would take a major restart of the operating system. Microsoft doesn't want to do that because of "Legacy". Legacy refers to making Windows compatible with older versions of hardware and older versions of Windows. Microsoft wants to keep Legacy so they don't lose customers using older software and hardware. However it's part of what makes Windows more vulnerable. It makes Windows more unstable it and less secure.
There is much more I could go into about why Linux/Unix more secure but I'll just post links to these other articles:
Note: The first and fourth articles are not the same article even though the titles are the same.
To conclude this I'll tell you my own personal experience. I have used IBM compatible computers since DOS 4. I've used Windows since Windows 3.1. I used to make a living fixing Windows problems. On at least one occasion, I've been installing Windows XP, and before finishing getting everything set up (installing firewall, anti-virus, etc), I've gotten a worm (a type of Malware). I've used Windows 7 for as long as eight months before it showed signs of getting hacked into through the internet. I've been running versions of Linux for about six years now and have never shown signs of being hacked. As I've said in a previous article, we live in a day and age of SERIOUS malware and SERIOUS hacking. The result of being hacked or infected by malware could simply be an annoyance such as having my wallpaper changed into something I find offensive. However it could be, being tried and convicted of trafficking child porn after my system being hacked and made part of a botnet used for storing or transfering child porn. How would you prove that you didn't know that material was on your computer? See my next article: "THE COST VS BENEFITS OF WINDOWS AND UBUNTU/LINUX."