Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I open up the terminal, I get this instead of my username:


Is there any reason why I am getting such username?

share|improve this question

migrated from Nov 11 '12 at 20:56

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

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

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

You must log in to answer this question.

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