A computer virus is a malicious piece of code that spreads from device to device and can damage systems or steal data. It replicates like a biological virus, infecting programs and files to disrupt normal functioning or stop a computer altogether. Common ways viruses spread include email attachments, visiting infected websites, and sharing files. Symptoms include slow performance, crashes, and data loss. Antivirus software detects and removes viruses by comparing files to databases of known threats. Basic protection methods involve antivirus software, firewalls, secure browsing, and safe downloading practices.