I was in terminal today and noticed this:

enter image description here

Jeremys-Iphone: I have no idea who Jeremy is or have a friend named Jeremy.

Do you know what this means, and how this might have happened?


  • It is probably a DHCP-supplied hostname. What probably happened is that the DHCP server had a hostname cached for your IP/MAC in some weird way that had the iPhone's hostname in cache and applied it to your Mac when it requested a lease form the DHCP server. You can check your computer's actual name in: System Preferences -> Sharing -> Computer Name Mar 9, 2015 at 19:28

1 Answer 1


Check your $PS environment variable for setting prompt:

echo $PS1

It might be

"\h:\W \u$ "

If so, your computer name is changed and you can edit it. If not, change it to that form by editing ~/.bash_profile

Also check that you are really on your Mac and not on an iPhone by this command:

uname -m

It should be x86_64 and not iPhone...

  • You're right, the guy who set up the Internet in the office is named Jeremy. I thought I was hacked... awkward.
    – Donny
    Mar 9, 2015 at 20:04

Not the answer you're looking for? Browse other questions tagged .