Servo motor control

with a which command can i control my servo motor clockwise and counterclockwise direction both ?? thanks for your help

You normally set a servo to a position. It depends on where the servo originally is as to what direction it rotates to get to your set position.

with a which command can i control my servo motor clockwise and counterclockwise direction both ?? thanks for your help

If the servo is a normal hobby servo then the servo goes to a commanded position and stays there. If the servo is modified for continuous rotation, the servo rotates in a direction and speed depending on the commanded value.