Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 SSH into somewhere, I see something line this in the terminal: [504]%

Looking it up, looks like its my bash shell history. How can I disable this index display and show the current working directory instead?

share|improve this question

On the target system (the one you SSH into), find out where the bash variable PS1 is being set (grep PS1= .bash*), read man bash, the PROMPTING section, and set PS1 the way you want to.

share|improve this answer

Your Answer


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.