This question already has an answer here:
- OSX Terminal showing incorrect hostname 4 answers
The computer name is displayed as "unknown-" at the command prompt. How do I change this?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
This can be done through