In Japan we used to use the word “将軍(しょうぐん-shougun)” for the top of Samurai. “将軍” was appointed by the Emperor to control all of the nations and especially samurais as a top of Samurai Military. So we often translate “将軍” as “General” in English. The formal word of this “将軍” is “征夷大将軍(せいいたいしょうぐん-seiitaishougun)”.
And also we have similar word “大将(たいしょう-taishou)” which is used popularly to express the top of a military group.