In the presence of a chemical gradient bacteria will chemotax, or direct their overall motion based on the gradient.
The helical nature of the individual flagellar filament is critical for this movement to occur, and the protein that makes up the flagellar filament, flagellin, is quite similar among all flagellated bacteria.