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 up the terminal, I get this instead of my username:

unknown-b8-8d-12-22-27-72% 

Is there any reason why I am getting such username?

share|improve this question

migrated from stackoverflow.com Nov 11 '12 at 20:56

This question came from our site for professional and enthusiast programmers.

1  
You should post your PS1 string from .bash_profile or .bashrc. That will provide the necessary information for someone to help you out. –  BenTrofatter Nov 11 '12 at 19:39
    
what does it say when you issue whoami on the prompt? –  sampson-chen Nov 11 '12 at 19:55
    
whoami does post my real username: Malloc –  Malloc Nov 11 '12 at 20:21

1 Answer 1

You can easily fix this by defining your own PS1 (your prompt) by editing the ~/.bashrc config file. An example including your username, hostname, working directory and prompt sign is:

PS1='\u@\h \w \$ '

After editing ~/.bashrc you need to source it to make the changes apply in the current shell:

source ~/.bashrc
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.