וְיוֹאָ֕ב אֶ֥ל כָּל־הַצָּבָ֖א יִשְׂרָאֵ֑ל וּבְנָיָה֙ בֶּן־יְה֣וֹיָדָ֔ע עַל־הכרי [הַכְּרֵתִ֖י] וְעַל־הַפְּלֵתִֽי׃
約押統領以色列全軍;耶何耶大的兒子比拿雅統管基利提人和比利提人;
Rashi
Yoav commanded the entire army. Despite the fact that Dovid had said to Amosoh, "I will make you the commanding general in Yoav's stead",14Earlier in 19:14. now that Amsoh was dead Yoav was not replaced. And because of Yoav [remaining commander], he [Dovid] had to appoint his [Yoav's] friends.15To the positions mentioned in the next few verses.