The right hand rule states that "If a current carring wire is held by the right hand, and the fingers are curled in the direction of the current, then the thumb points upward in the direction of the magnetic field"
Therefore, the direction of a magnetic field around a straight current wire is determined through the direction of the thumb when the fingers are curled in the direction of the current