The direction of the magnetic field at a point, the direction of the arrowheads on the magnetic field lines, which is the direction that the "north pole" of the compass needle points, can be found from the current by the right-hand rule. If the right hand is wrapped around the wire so the thumb points in the direction of the current (conventional current, flow of positive charge), the fingers will curl around the wire in the direction of the magnetic field.