Distance is how far you travel between any two points by any route. It is a scalar quantity. Displacement is the minimum “as the bird flies” distance between two points. It is a vector quantity, so it has direction. Distance is the scalar value of how far an object has traveled regardless of direction. Displacement is the vector value of how far an object has been displaced, meaning how far is it from where it started.
Displacement is the shortest vector joining the initial and the final point and the distance is the total path covered by the particle