Lactic acid bacteria were reported as a promising alternative to antibiotics against pathogens. Among them, Lactobacillus rhamnosus could be used as probiotics and inhibit several pathogens, but its antibacterial mechanisms are still less known. Here, L. rhamnosus SCB0119 isolated from fermented pickles could inhibit bacterial growth or even cause cell death in Escherichia coli ATCC25922 and Staphylococcus aureus ATCC6538, which was mainly attributed to the cell-free culture supernatant (CFS). Moreover, CFS induced the accumulation of reactive oxygen species and destroyed the structure of the cell wall and membrane, including the deformation in cell shape and cell wall, the impairment of the integrity of the cell wall and inner membrane, and the increases in outer membrane permeability, the membrane potential, and pH gradient in E. coli and S. aureus. Furthermore, the transcriptomic analysis demonstrated that CFS altered the transcripts of several genes involved in fatty acid degradation, ion transport, and the biosynthesis of amino acids in E. coli, and fatty acid degradation, protein synthesis, DNA replication, and ATP hydrolysis in S. aureus, which are important for bacterial survival and growth. In conclusion, L. rhamnosus SCB0119 and its CFS could be used as a biocontrol agent against E. coli and S. aureus.