A linear device has an essentially rod-shaped functional unit and a functional unit that at least partially encompasses the rod-shaped functional unit and includes a main body and at least one end plate unit that rests with a contact surface against the main body in which a lubrication groove is provided, which is open toward the contact surface and extends at least partially in the circumference direction around the rod-shaped functional unit, and it is possible to fasten the end plate unit to the main body by only two fastening elements, and a region of the contact surface adjacent to the lubrication groove and encompassing this lubrication groove is raised in relation to the rest of the contact surface.