A control device for a linear compressor is provided to carry out rectilinear reciprocation motion of a piston without any connection with change of a load or a cooling capacity even though the compressor does not operate by resonance state. A control device for a linear compressor includes a driving part(50) generating an asymmetric AC voltage(v) according to a predetermined control signal by receiving external AC power(40) and applying the AC voltage to a coil-wound element(14a) of a linear motor. A control part(70) sets a varying amount of a stroke of a moving element such as a piston in the linear compressor according to a cooling capacity for generating the control signal to be applied to the driving part for the piston to carry out asymmetric rectilinear reciprocation motion according to the set varying amount while the piston carries out the rectilinear motion to a top dead point.