Learn about this topic in these articles:

ship design and maneuverability

…a transverse tunnel near the bow. This thruster can push the bow sideways without producing forward motion. If a similar thruster is fitted near the stern, a ship can be propelled sideways—or even rotated in place, if the two thrusters act in opposite directions.