The linear guided air cylinders are equipped with sliding bearings (bearing bush type or ball type) on both sides of the cylinder barrel, so the guide accuracy is high and the ability of bearing transverse load is strong. The magnetic switch is directly installed on the linear guided air cylinders. The magnetic switch is used to detect the position of the cylinder stroke and control the reciprocating motion of the cylinder. Therefore, it is not necessary to install a travel valve or a travel switch on the cylinder barrel to detect the position of the cylinder piston, nor to set a stop on the piston rod.