Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

This question already has an answer here:

I have tried the suggestions here:

How to shorten the no of characters display for the current directory in the prompt

But adding these lines to the .bashrc file had no effect.

Uname -a :

#46-Ubuntu SMP Wed Mar 7 13:47:05 UTC 2012 x86_64 GNU/Linux

share|improve this question

marked as duplicate by Mokubai May 21 '15 at 19:10

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.

What did you add to the .bashrc? Have you started a new shell after changing .bashrc? What is the new prompt? – choroba Oct 16 '12 at 10:39
up vote 0 down vote accepted

Sorry - the question is already answered here

In the standard .bashrc on Ubuntu (in your home directory), look for the comment 'If this is an Xterm...' and change the PS1 value beneath.

share|improve this answer

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