Using the right-hand screw rule, you position your right hand is if grabbing the wire, with the thumb protruding outwards, pointing towards the direction of the current. The 4 fingers wrapped around the wire determines the direction of the magnetic field.