Let $T \in \mathscr L(\mathbb F^n)$ such that $T(x_1,x_2,...,x_n)=(x_1,2x_2,...,nx_n)$. Then find all the invariant subspaces of $T$. Clearly, $Null$ $T $ and $Range$ $T$ are two invariant subspaces.
Also, all the subspaces spanned by the eigen vectors form $1$-dimensional invariant subspaces. In this case the eigen values of $T$ are $i$, where $i$$\in\{1,2,...,n\}$ and the corresponding eigen vector is of form $(0,...,0,a,0,...,0)$ where $a(\neq 0)\in \mathbb F$ is the $i^{th}$-component of the vector.
But what about the invariant subspaces of other dimensions?
For instance, if $W$ is an invariant subspace of $T$ of dimension $k$, then $T|_W$ is a linear operator on $W$. So, for any $w\in W$, $Tw\in W$. If $w\in span(e_1,e_2,...,e_k)$ then $Tw\in span(e_1,2e_2,...,ke_k)$. Since, $dim$ $W=$ $dim$ $Tw=k$, we can say that $Tw=span(e_1,2e_2,...,ke_k)\in span(e_1,e_2,...,e_k)=W$ i.e $Tw\in W$.
So, can we conclude from here that there will be invariant subspaces of all dimensions under $T$, given by $span(e_1,e_2,...,e_k)$, where $1\leqslant k\leqslant n$ (which are precisely $2^n$ in number)?