Solenoid is a coil of many circular turns of an insulated copper wire closely wound in the shape of a cylinder.
Solenoid behaves as a magnet in the following ways: -
(i) magnetic field produced by a solenoid is similar to the magnetic field of a bar magnet.
(ii) one end of the solenoid behaves as north seeking pole and another end behaves as a south seeking pole as in magnet.
We can determine the north and the south poles of the solenoid by bringing a north pole of a magnet near to anyone end of the solenoid. If the magnet is attracted it is unlike pole (south) and if it is repelled it is like pole (north).