^_^

2013年1月17日星期四

How to Set the HostName, Computer Name, and Bonjour Name Separately in OS X

ComputerName is the so-called “user-friendly” name for the Mac, it’s what will show up on the Mac itself and what will be visible to others when connecting to it over a local network. This is also what’s visible under the Sharing preference panel.
scutil --set ComputerName "Foolbear's MacBookPro"
HostName is the name assigned to the computer as visible from the command line, and it’s also used by local and remote networks when connecting through SSH and Remote Login.
scutil --set HostName "foolmbp"
LocalHostName is the name identifier used by Bonjour and visible through file sharing services like AirDrop.
scutil --set LocalHostName "FoolMacBookPro"
Finally, you can also check the current settings of LocalHostName, HostName, and ComputerName by using scutil with the –get flag like so:
scutil --get HostName
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/ ]
文章标题: How to Set the HostName, Computer Name, and Bonjour Name Separately in OS X
文章地址: https://blog.foolbear.com/2013/01/how-to-set-hostname-computer-name-and.html

没有评论 :

发表评论

Related Posts with Thumbnails