Proof (isometry group of cube or octahedron)

Let $G$ be the isometry group of the cube and $G_0\leq G$ be the index-2 subgroup of rotational symmetries.

Under the action of $G_0$, the orbit of a face has size 6, and the stabiliser has size 4 since the face is a square. Therefore by orbit-stabiliser, $$ |G_0| = 6\times 4 = 24, \quad |G| = 24 \times 2 = 48.$$

$G$ also acts on the set of the 4 diagonals, so we have a homomorphism $$ \theta: G_0 \to S_4. $$

Recall that $S_4$ is generated by $\pmat{4\\2}=6$ transpositions.


(Rotation about the orange axis by $\pi$ swaps the blue diagonals but fixes the black diagonals.)

Rotation about the mid-points of opposite pairs of edges gives $12/2 = 6$ transpositions in the range of $\theta$, and therefore $\im\theta$ contains all transpositions. Hence $\theta$ is surjective and is therefore an isomorphism $$ G_0 \isom S_4. $$

Now consider the isometry that sends vertices to the opposite vertices $-I\in G\setminus G_0$. Since it commutes with everything, by the direct product theorem, $$ G \isom S_4 \times C_2. $$