Keep in mind that my cars are manual transmission... And I'm using a repair manual as a reference.
Those photos that you posted don't look like the shifter photos in the repair manual that I'm looking at. What they show in the manual is, the cable bolts onto the shift arm of the transmission, so it is adjustable. The end of the shift cable that attaches to the shifter mechanism, is held on with a nylon locking sleeve which is pried off with a screwdriver for removal.
I could be mistaken, but the cable that you photographed looks like the parking brake cable???