20

I'm new to Mac. I would like to rename the computer name/root title that shows up when I open the terminal. Usually it's like computername:~ xxx$

Any and all help is appreciated!

injector
  • 950

1 Answers1

33

try this in a terminal

sudo scutil --set HostName [NewHostNameHere]

Or if you want to do it via the GUI, do this

Apple Menu > System Preferences > Sharing > change the computer name (near the top of the window).

Richie086
  • 5,351