The development of antibiotic-resistant bacteria is a worldwide health-related emergency that calls for new tools to study the bacterial metabolism and to obtain fast diagnoses. Indeed, the conventional analysis time scale is too long and affects our ability to fight infections. Slowly growing bacteria represent a bigger challenge, since their analysis may require up to months. Among these bacteria, Mycobacterium tuberculosis, the causative agent of tuberculosis, has caused more than 10 million new cases and 1.7 million deaths in 2016 only. We employed a particularly powerful nanomechanical oscillator, the nanomotion sensor, to characterize rapidly and in real time tuberculous and nontuberculous bacterial species, Mycobacterium bovis bacillus Calmette-Guérin and Mycobacterium abscessus, respectively, exposed to different antibiotics. Here, we show how high-speed and high-sensitivity detectors, the nanomotion sensors, can provide a rapid and reliable analysis of different mycobacterial species, obtaining qualitative and quantitative information on their responses to different drugs. This is the first application of the technique to tackle the urgent medical issue of mycobacterial infections, evaluating the dynamic response of bacteria to different antimicrobial families and the role of the replication rate in the resulting nanomotion pattern. In addition to a fast analysis, which could massively benefit patients and the overall health care system, we investigated the real-time responses of the bacteria to extract unique information on the bacterial mechanisms triggered in response to antibacterial pressure, with consequences both at the clinical level and at the microbiological level.