A computer virus is a malicious computer program that can copy itself and spread without permission. It can infect computers by being transferred through email attachments, files on removable drives like USBs, or by exploiting vulnerabilities in network file sharing systems. While some viruses only replicate and spread, others are programmed to damage systems by deleting files or reformatting hard drives. Anti-virus software uses virus signatures and heuristics to detect known and unknown viruses, helping to prevent and remove infections. However, users must still regularly update their software and operating systems to patch new vulnerabilities exploited by viruses.