Beschrieben wird ein Linearmotor für optische Systeme, beispielsweise Endoskope. Der Motor hat einen Stator mit einem Rückschlußelement und einer Spule. Der Läufer des Motors umfasst zwei Permanentmagnete, die gegen sinnig gepolt sind. Zwischen den Permanentmagneten ist ein Polschuh aus weichmagnetischem Material vorgesehen. Durch Beaufschlagung der Spule mit Strom kann der Läufer aus einer Ruhelage heraus in Längsrichtung verschoben werden.The motor has a stator (1) with a coil (9), which is enclosed by a return element (10) in entire length of the coil. A rotor (2) is displaced parallel to the stator and is partially enfolded by the coil. A pole shoe (4) is arranged between two permanent magnets (7, 8). Length of the rotor corresponds to length of the return element of the stator. An optical element is accommodated at the interior of the rotor. A slide sleeve (6) with a material with lower frictional coefficient is arranged at a surface between the stator and the rotor. An independent claim is also included for a method for operating a linear motor.