This question already has an answer here:
The magnetic field lines for a solenoid look like this:
As one can determine from the right-hand rule, the left side of the diagram contains the north pole and the right part the south pole. It makes sense to me that, near the north pole, the north pole of another magnet would move towards the solenoid's south pole. However, can somebody explain why the magnetic field lines inside the solenoid point towards the north pole? Does this mean if another magnet's north pole was placed inside, it would be attracted to the north pole of the solenoid?