Change name in Terminal Entries

Discussion in 'macOS' started by Neo-Tech, Apr 25, 2010.

  1. Neo-Tech macrumors regular

    Jun 19, 2009

    I've been looking at my Terminal entries and have noticed that the name has changed?

    If you look at that image, you can see that it says xxxx-MBP-BC, that was the name I gave to Windows in Boot Camp. Is there anyway I can change it back or to something else? Surely it is possible if the first entries were the ones I set it to. It is confusing me when looking at it from other computers on the network :/

  2. calderone macrumors 68040


    Aug 28, 2009
    The name listed there is the computer name*, this can be set in Sharing Preferences or in Terminal:

    sudo scutil --set ComputerName NewName

    * This will also take any HostName that is set either manually, or via a DNS server. If that is the case you may need to run:

    sudo scutil --set HostName NewName
    To remove the hostname or set it to something you want instead.

    If that name is provided by a DNS server, you will have to modify the A record for the machine on the DNS server.
  3. Neo-Tech thread starter macrumors regular

    Jun 19, 2009
    Thanks so much! Worked great.

    I had to enter sudo scutil --set ComputerName, then press return and enter the new name. All fine and dandy now :D

Share This Page