a dust collector and a device for beating dust in the same . the dust collector includes : a main body with a clean air outlet ; a filter section set at the clean air outlet ; and a device for beating dust . the device for beating dust includes : a sliding rail set on the outside surface of the main body and opposite to the clean air outlet ; a slider slidably set on the sliding rail ; a poker rod rotatably set on the slider ; and a beating dust member used for beating the filter section and set on the poker rod .