Linezolid is used to treat certain bacterial infections in many different parts of the body, including certain types of skin infections or pneumonia.