Joab was in command of the whole army of Israel. Benaiah, son of Jehoiada, was in command of the Cherethites and Pelethites.