Right now I have a Mac Mini. I migrated macbook pro data from a time machine, but I didn't do it from the beginning of my startup. I used the migration assistance to migrate the data. However, I'm getting my macbook pro name in my terminal command line, why is that?
Name-Macbook-Pro:~ name$
Why am i getting this? I'm on my Mac Mini, I guess its from the migration but will it affect anything else? How do I change this?
HostName
(despite whatman hostname
says!), given that its value is then out of sync with theLocalHostName
value set via System Preferences. Conversely,LocalHostName
is also recognized byhostname
. To put it another way: if you want to change the hostname from a shell, use BOTHsudo scutil --set LocalHostName newName
andsudo scutil --set ComputerName newName
, where theComputerName
value can be a friendlier version (spaces, punctuation) of theLocalHostName
value (alphanumerics and dashes only). – mklement0 May 05 '14 at 04:28HostName
entry, set its value to an empty string (this effectively removes the key from the.plist
file):sudo scutil --set HostName ''
. – mklement0 May 05 '14 at 04:31