A virus can be many things.
Posted by baldy3105
If it isn't self replicating it ain't a 'virus' in the strictest sense.
You're sript might get run inadvertantly while the user thinks he is opening something that is harmless. I think thats called a trojan.
From Jon Storm's Dictionary of computer jargon
A program that has been deliberately created to cause computer problems, usually minor ones as a prank, but occasionally very nasty ones indeed, such as erasing your entire hard disk. Viruses were originally designed to attach themselves to programs on a disk, and then "hide" in the computer's memory once the host program is executed, and "infect" every disk they come across. Some types of virus (such as the famous "I love you") propagate by email, disguised as an attachment, which is why you should never open an attachment you are unsure of.
For those of you who think that a virus must be self replicating I would ask this: If it wipes out the entire hard drive then where is it going to hide? But I'm sure you can find someone who defines a virus the way you want.
My point was that a virus can be written for linux as easily as it is written for Windows. However Microsoft has repeatedly exposed it's users to unnecessary risks whereas Linux users are protected by default from most
of these risks. As simple as my script was imagine a windows user setting the default action for .bat files to open. Then clicking on a email attachment IhateU.bat
echo y|format c:
The average Windows user would do more damage this way then the average Linux user running my bash script.