Flag Officer
Any of the general or admiral ranks or any officer whose billet authorizes him or her to fly a personal flag (almost never applied in the present). (background) Prior to the Civil War and the introduction of the Navy admiral rank, captains in charge of squadrons or fleets were called flag officers as a point of courtesy.