Change name in Terminal Entries

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

  1. Neo-Tech macrumors regular

    Joined:
    Jun 19, 2009
    #1
    Hi,

    I've been looking at my Terminal entries and have noticed that the name has changed? http://skitch.com/neo-tech/dyxmp/system.log

    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 :/

    Thanks
    Neo-Tech
     
  2. calderone macrumors 68040

    calderone

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

    Code:
    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:

    Code:
    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

    Joined:
    Jun 19, 2009
    #3
    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