There have been a few successful internet viruses targeted at Linux. However, Linux is a much less hospitable environment for virus programs, and it is considerably more difficult to write malware that can seriously damage a Linux system.
There are a few AV programs for Linux, many of them are for server systems and prevent Windows viruses from bing forwarded from Linux mail servers
The open source nature of Linux actually makes malware harder to create, as the source is available security programmers as well as to the malware programmers, and the deployment systems favor the security updates over any malware.
It boils down to a few simple differences in the system designs. One important difference is to be found in how each system identifies executable files. Windows uses a file extension and the PATH environmental variable to determine a file as an program. Many Windows viruses and worms take advantage of this to install themselves on a system. Additionally Windows uses a unified scripting language that can be auto0executed from many applications, embedded in many documents and has extensive access to system level functions.
Unix and it's derivatives (including Linux) use a subset of the file permissions attributes, along with the PATH variable to identify executable files.
Before maliscious software can infect a asystem, it execute as a program. Windows makes this easy. Linux makes it difficult to execute a program without the user's knowledge, and with few exceptions, programs run by individual users have no direct write access to global system resources under Linux.
There is a common misconception that Linux is not targeted as much as Windows because of its 2 or 3 percent market share. Since only about 2 percent of all Linux installations are commercial distributions, and the market share figures only account for license commercial systems, the market share figures are very misleading. A more accurate estimate of Linux usage, based on survey sites of the internet indicate that between 20 and 30 percent of cumputers currently deployed us some form of Linux.