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

My ISP has switched to jailshell at some point, and now when I SSH in my prompt is always:


I'd like it to be:

`pwd` $

Where do I configure this? I seem to recall some kind of config file, but I can't find it.

share|improve this question
up vote 4 down vote accepted


touch ~/.bashrc; echo 'PS1="\w $"' >> ~/.bashrc

This will create the file .bashrc in your home directory if it doesn't already exist, and append PS1="\w $" to it.

The environment variable PS1 defines your prompt, and the escape sequence \w translates to the current working directory (pwd). A full list of escapes sequences can be found here.

To make the shell reflect the changes made in .bashrc without restarting the session, run source ~/.bashrc.

share|improve this answer
if I do source ~/.bashrc I get the prompt like you say, but it isn't doing that on login – Kip Dec 4 '09 at 13:13
oh wait i got it to work. since it is a login prompt i have to use ~/.bash_profile, not ~/.bashrc – Kip Dec 4 '09 at 13:15
Awesome, I'm glad it worked :). – Arkenklo Dec 5 '09 at 11:15

AFAIK jailshell reads .bashrc
so man bash is your friend

share|improve this answer

~/.bash_profile - This works for hostgator PS1 prompt

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.