Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I open Terminal, it comes up with unknown:~ (user name) and will not allow me to do anything.

I haven't done anything to cause this, this is how the Mac started up.

share|improve this question
1  
It's just the shell prompt, and it probably just cannot figure out your current host name. Shouldn't be anything to worry about. What do you mean by 'will not allow me to do anything' -- have you tried typing? Related: superuser.com/questions/49891/… –  Daniel Beck Aug 18 '13 at 21:28

1 Answer 1

The unknown: part of the prompt is your computer's hostname.

Os X sets the hostname in quite a complicate way.

  1. The name provided by the DHCP or BootP server for the primary IP address
  2. The first name returned by a reverse DNS (address-to-name) query for the primary IP address
  3. The local hostname (set in the Sharing pane of System Preferences)
  4. The name localhost

In the usual case, the hostname is your Computer Name as defined in Sharing-Preference Pane. You can change it at System Preferences -> Sharing -> Computer Name

I can't help you with Terminal being unresponsive at this point. Please provide more information on how things got this way.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.