I was reading about curvature of a curve but I didn't understand it.
Imagine your in a car, travelling a road in the mountains at constant speed. When entering curves, you feel pushed sideways. The more the road is curved, the more you are feeling the effect. This is because, even though you are travelling at constant speed, there is an acceleration when you change directions. This acceleration is directed towards the center of curvature of the curve. For instance, if you are travelling on a circular road, then you are constantly accelerating towards the center of the circle.
The curvature $\kappa$ of a curve at a point is the magnitude of this acceleration when you are travelling at unit speed.
In other words, given a planar curve $\gamma : [0,1] \rightarrow \mathbb{R}^2$ such that $\|\gamma'(t)\| = 1$ (constant unit speed), the curvature of $\gamma$ at $t$ is defined as
$$
\kappa(t) = \|\gamma''(t)\|.
$$
In general, if you are travelling at a constant positive speed $v = \|\gamma'(t)\| > 0$, then the curve $\alpha(t) = \gamma(t/v)$ has unit speed, so that
$$
\kappa(t) = \| \alpha''(t) \| = \frac{\|\gamma''(t/v)\|}{v^2}.
$$
is there any general formula for finding curvature of the all curves?
Yes. In general, if $\gamma : [0,1] \rightarrow \mathbb{R}^3$ is a curve that never stops ($\|\gamma'(t)\| > 0$, for all $t$), then the formula of the curvature of $\gamma$ is
$$
\kappa(t) = \frac{\|\gamma'(t) \times \gamma''(t)\|}{\|\gamma'(t)\|^3},
$$
where $\times$ denotes the cross product of $\mathbb{R}^3$. The physical interpretation of curvature does not change in this general case.