Change the hostname in Mac OS X [osx]
When I log into the network at my job my Mac’s hostname always turns to:
larryx.na.corp.ipgnetwork.com
I have my local hostname set to:
larryx.local
So What I would like to do is set my Mac’s hostname to my local hostname. You can do this all from Terminal in a single line.
Run this command in Terminal:
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:
This is what it looked like for me:
没有评论:
发表评论