Joab was commander over Israel's entire army. Benaiah, the son of Jehoiada, was commander over the Kerethites and Pelethites.