Linezolid is used?to treat certain infections caused by bacteria- including pneumonia and infections of the skin. Linezolid is in a class of antibacterials called oxazolidinones. It works by stopping the growth of bacteria