Question: how to transfer data from one mac to another using a cable?
Answer: Open a Finder window, go to Applications > Utilities, then double-click Migration Assistant. Follow the onscreen instructions. See the Apple Support article How to move your content to a new Mac. Tip: For fastest migration, connect your old computer to your iMac with a cable, such as a Thunderbolt 3 (USB-C) cable.