Technical term is a linear actuator.
But the cheaper solution would probably be to use a car door lock motor.
Unless it needs to move with a lot of force, then go with the slow but more powerful Linear Actuator.