Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown name in Terminal as username

i bought a MacBook Pro with OSX version 10.9.2 (Mavericks) since this, (about 2 month) i did not any attention to what happens in my Terminal when i start typing some code in it (java codes for compile or something) but now i got that when i just start my terminal, this totally unknown line will appeared:

dukhat:~ MacBookpro$

necessary to say, my basic mac user was macbookpro when i bought this mac but what is this "dukhat"?!

i googled it but there is no related information about...

thanks for advances...

like image 624
user3316612 Avatar asked Oct 26 '25 02:10

user3316612


1 Answers

Reset it using:

sudo scutil --set HostName newhostname

or

sudo hostname -s newhostname.

like image 80
fips Avatar answered Oct 27 '25 18:10

fips



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!