How do i completely change computer name?

poiihy

macrumors 68020
Original poster
Aug 22, 2014
2,285
53
I changed the computer name in the Sharing perference pane, and that worked for most of it, but in the command line it still shows the old name. How do I fix this?
 

That-Guy

macrumors 6502a
Feb 25, 2012
652
56
UK
I changed the computer name in the Sharing perference pane, and that worked for most of it, but in the command line it still shows the old name. How do I fix this?
Have you tried restarting your machine? Would imagine that would fix it?
 

poiihy

macrumors 68020
Original poster
Aug 22, 2014
2,285
53
Have you tried restarting your machine? Would imagine that would fix it?
lol, I changed the name a little while ago, it's gotten plenty of restarts since :p

Maybe it's Yosmite bug?
 

Watabou

macrumors 68040
Feb 10, 2008
3,419
727
United States
No, it shows the old name, just like it shows before each entrance line whatever you call it
That's pretty weird, I would try entering a new Computer name inside Sharing Preferences, and then entering the name you want after. I've found that sometimes this updates the hostname if the previous one didn't for some reason.

This sounds like a bug though, I would report it to apple.
 

jbarley

macrumors 68040
Jul 1, 2006
3,863
1,711
Vancouver Island
The computer name and the username are not the same.
Typing 'hostname' in a terminal window shows my computer name as seen in sharing.
The command prompts in my Terminal window show my username (short name) at each and every new prompt line.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.