how to reset mac local host name to defaults So I was messing around with Sharing Preferences and I accidentally changed the name of the local host name I don't remember the previous name so I would like to reset it back to what it was before and I also have a full time machine backup.
From any admin account:


Open Terminal
Run sudo gzcat /var/log/system.log.7.gz | head (admin password required)
The name as of seven days ago will be shown at the beginning of each line right after date/time.