I would love to know if the liquid will be shaken or not moving because there is no space.
If there is space, the container will move. It will also change the center of mass as the liquid splashes around.
If there is no space and the container is full of liquid, other answers describe what happens.
This is important when transporting liquids on boats. If the liquid can move around, the motion can flip the boat. Containers get designed to minimize the chance of that happening.
If you shaked perfectly along one axis, they'd probably only move a bit, and not really mix, depending on how compression able and uniform the liquid is.
A paint mixer for instance mostly relies on rotational inertia https://www.youtube.com/shorts/bSUbEzxGjAM
What’s more, the liquid will move even if you don’t shake it. See https://en.wikipedia.org/wiki/Molecular_diffusion, or https://en.wikipedia.org/wiki/Brownian_motion