If $X$ is the smallest number when rolling a die $n$ times. Then how can we obtain the PDF/CDF? I thought as for $1\leq{i}\leq6$ how to find $P(X=i)$.
Example: Throws$=(3,2,4,4,5)\implies X=2$. If we want to generalize this into a PDF/CDF, I was trying to use the formula $X=\min{(X_1,X_2,\dots,X_n)}$.
I don't know how to apply the whole formula and get to the general PDF/CDF. Any tips would be welcome.

The idea is to find $P(X\ge i)$, it's not too difficult : the event $X\ge i$ is realized when all the throws gave a result greater than $i$, so it's $\left(\frac{7-i}{6}\right)^n$.
After that, $$P(X=i)=P(X\ge i)-P(X\ge i+1)=\left(\frac{7-i}{6}\right)^n-\left(\frac{7-(i+1)}{6}\right)^n$$ for $1\le i\le 5$, and $$P(X=6)=P(X\ge6)=\left(\frac{1}{6}\right)^n$$