Question: how to change the name for mac?
Answer: Open System Preferences.
Click on Sharing.
Click on the field Computer Name: at the top.
Highlight the current name and enter a new one.
Press enter or click anywhere in the window outside of the text field to set the new name.