The direction of the magnetic field in a straight current-carrying conductor is given by
Right-hand thumb rule
The direction of the magnetic field in a straight current-carrying conductor is given by Right-hand thumb rule. According to Right-hand thumb rule, imagine you are holding a current carrying conductor with the right hand in such a way, that the thumb points in the direction of the current. The direction in which other fingers encircle the conductor gives the direction of the magnetic field.