The bar magnet can be tied with a string and suspended in the air till it comes to rest. The freely suspended bar magnet would come to rest in the N-S direction. Therefore, the end that points in the north direction would be the north pole of the magnet.