# If $e^A$ and $e^B$ commute, do $A$ and $B$ commute?

It is known that if two matrices $A,B \in M_n(\mathbb{C})$ commute, then $e^A$ and $e^B$ commute. Is the converse true?

If $e^A$ and $e^B$ commute, do $A$ and $B$ commute?

Edit: Addionally, what happens in $M_n(\mathbb{R})$?

Nota Bene: As a corollary of the counterexamples below, we deduce that if $A$ is not diagonal then $e^A$ may be diagonal.

No. Let $$A=\begin{pmatrix}2\pi i&0\\0&0\end{pmatrix}$$ and note that $e^A=I$. Let $B$ be any matrix that does not commute with $A$.