I just learned the formal definition of a distribution: a linear continuous functional $T$ from the vector space of test functions $C_{c}^{\infty}$ to its field of scalars $\mathbb{K}$. Ok, I guess.
But how do usual probability distributions fit this definition? For example, how is the normal distribution assigning a function in $C_{c}^{\infty}$to a real number in $\mathbb{K}$?
Bonus (what I'm really trying to understand when studying this): what does it formally mean for a random variable $X$ to have a distribution $T$? What is formally going on when I say something like $X \sim \mathcal{N}(\mu, \sigma^2)$?
The word "distributions" has two meanings, in two overlapping communities:
https://en.wikipedia.org/wiki/Probability_distribution
Measures are distributions in the latter sense, but many distributions do not correspond to measures.
https://en.wikipedia.org/wiki/Distribution_(mathematics)