gunnery sergeant: a noncommissioned officer ranking above a staff sergeant in the marines
sergeant: any of several noncommissioned officer ranks in the Army or Air Force or Marines ranking above a corporal
cap: a top (as for a bottle)