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
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.
From your Time Machine backup, open
Take a look at the System:Network:HostNames:LocalHostName and System:System:ComputerName keys for the host name and computer name set at that time.