Water will move in the direction where there is a high concentration of solute (and hence a lower concentration of water. Salt is a solute, when it is concentrated inside or outside the cell, it will draw the water in its direction. This is also why you get thirsty after eating something salty.