Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

poiihy

macrumors 68020
Original poster
Aug 22, 2014
2,301
62
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
662
57
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,301
62
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,426
759
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 601
Jul 1, 2006
4,023
1,895
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.