A flag officer is a naval officer of sufficient rank that is permitted to fly a flag to represent where they exercise command. Typically, usage of the term "flag officer" refers to the senior officers in a nation's navy, specifically those who hold the rank of commodore, admiral, or higher.
See more at Wikipedia.org...