Wild Goat
Wild Goat

Reputation: 3579

OSX terminal weird prefix

I noticed that I have some weird prefix in my bash terminal - unknown-MACADDRESS. I think in all unix terminals it is suppose to be host name and login. I've tried go to sharing and change my host name in there, but unknown- stays in terminal.

enter image description here

Not sure where problem is, do you know how to change it?

Thanks a lot for any help! enter image description here

Upvotes: 1

Views: 1209

Answers (2)

herrfischer
herrfischer

Reputation: 1828

For me this: scutil --set HostName yourname changed the name and it works even after a restart.

Upvotes: 1

Andy Lester
Andy Lester

Reputation: 93636

Use the hostname command

$ sudo hostname dan

Upvotes: 5

Related Questions