Strange Terminal Prefix in bash

Discussion in 'OS X Mountain Lion (10.8)' started by tamvly, Feb 19, 2013.

  1. tamvly macrumors 6502a


    Nov 11, 2007
    After using terminal for the installation of MySQL and a local Joomla development environment (hopefully unrelated) I am now getting a very odd prefix to my terminal prompt. Instead of getting

    machine_name:~ user_id$

    I'm getting

    unknown406c8f4592cf:~ user_id$

    Any ideas of what is going on here?
  2. mfram macrumors 65816

    Jan 23, 2010
    San Diego, CA USA
    Because that's the name of the machine. Probably given to it by a DHCP server. You can verify that by using the 'hostname' command in terminal. What name does that command return?
  3. tamvly thread starter macrumors 6502a


    Nov 11, 2007
    hostname returns 'unknown406c8f4592cf', the funny string in terminal. Hmmm.

    Not sure why DHCP would use that name as there is a perfectly good name in Preferences/Sharing. Also, there doesn't appear to be any Terminal preference that would affect this.

    Guess I'm confused.

Share This Page