$\textbf{The question is as follows:}$
The group $G$ is Abelian if and only if every irreducible character of $G$ is linear.
Here there is a nice and short proof for this, but there are some assertions which I cannot understand.
There are identical questions here link to the question and link to the question. But the proof which comes is shorter.
Let $k$ be the number of conjugacy classes of $G$. Then $k = |G|$ if and only if $G$ is Abelian.
Now $|G| = \sum_{i=1}^{k} \chi_{i}^{2}(1)$ and $\chi_i(1)\ge 1$ for all $i$. It follows then $k = |G|$ if and only if $\chi_i(1) = 1$ for all $i$.
$\textbf{First:}$ Why it is true that " $k = |G|$ if and only if $G$ is Abelian?"
$\textbf{Second:}$ How did he conclude the result?
Can somone please explain it to me?
Many thanks!
All the conjugacy classes in an Abelian group have size $1$.
In a non-Abelian group, if $ab\ne ba$, then $ab$ and $ba$ are conjugate, so you have a conjugacy class of size $>1$. So the number of conjugacy classes is $<|G|$.