The magnetic field lines at the axis of the current-carrying solenoid are
parallel to the axis of the solenoid
The magnetic field produced by a current-carrying solenoid is similar to the magnetic field produced by a bar magnet. They are straight lines parallel to the axis of the solenoid going from south pole to north pole inside the solenoid and from north pole to south pole outside the solenoid.