Viruses are small infectious agents that are made up of a chain of genetic DNA or RNA. Viruses needs a host cell to stay alive and replicate.
The difference between bacteria and a virus is that a bacteria is a living single celled organism. A virus is not considered a living organism (there are some arguments for and against this). A virus does not have any cellular parts or internal cellular structure. It consists only of a protein coat that holds a coiled string of nucleic acid, in this case DNA or RNA.
While bacteria can thrive in most surfaces and environments, a virus needs a living host to stay alive. It infects the cells of the host and uses these cells to make copies of it, infecting other cells in the process. Viruses spread from host to host through contact; direct or indirect.
Antibiotics only treat bacterial infections. They address bacterial infections by killing off the bacteria. For viral infections, there are relatively few drugs that can address these. This is because the virus lives inside the cells. Destroying the virus means killing the cells of the host.
Immunizing against a virus is the most common way. Immunization protects the body from contracting the viral infection. But as seen with the common cold or the influenza virus, viruses can mutate and work around the immunization.