发布时间: 2013-09-23 01:49:00
Run this command in Terminal:
$ sudo scutil --set HostName larryx.local
This is also helpful if you’re in Terminal and have a really long hostname at your prompt. If you want to view your current hostname, run this command in Terminal:
$ hostname
Back