Take the bar magnet and suspend it freely with help of a thread, the end
that points towards north pole will be regarded as north end of the
magnet. Take a bar magnet with known/marked poles on it. Let the north
pole of the magnet be brought closer to the suspended magnet at the end
that is pointing towards north, if it shows repulsion than it is
confirmed.