Question: how to transfer all data from one imac to another?
Answer: Open Migration Assistant, which is in the Utilities folder of your Applications folder.
Click Continue.
When asked how you want to transfer your information, select the option to transfer from a Mac, Time Machine backup, or startup disk.
Click Continue.