A spaghetti-like long shaped pasta has a continuous internal longitudinal cavity communicating with the outside through a co-extended longitudinal slot with convex edges that delimit the internal cavity. A device for the production of such pasta includes an extrusion drawing having, at the entry front, a plurality of holes with complementarily identical openings that lead into respective channels of identical shape, configuration and size, which end in a joint discharge channel, near an edge of an expanded head. An occlusion at the outlet hole of the discharge channel includes a septum separating the delivery channels and causing the two flows of extruded pasta to join solely on a peripheral portion, opposite to the cavity edge, with the expanded head producing the internal cavity that develops longitudinally within the finished product and communicates with the outside through a co-extended cutting or fissure.