Mir alem explained

The or (Turkish, Ottoman (1500-1928);: مير علم) was the standard-bearer of the Ottoman Sultan's insignia. He belonged to the military officials of the outer service of the Ottoman court, and was a post usually filled by pages educated in the palace school who had previously proven their ability in the inner, private service . The was in charge of the Sultan's personal flag and his horse-tail standards, as well as of Sultan's tent and the military band, with an extensive staff that in the early 17th century numbered 1,063 men. During the appointment of provincial governors, he handed them their own flag and horse-tail standards, as representatives of the Sultan's authority.

Sources