4 km ,6 km displacement is ?

The displacement between two points is the straight line distance between them, not necessarily the same as the distance traveled.

In this case, the displacement between the two points is 2 km, as it represents the shortest distance between the starting point and the ending point.