Home » Questions » Computers [ Ask a new question ]

How to change prompt in jailshell

How to change prompt in jailshell

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

Asked by: Guest | Views: 68
Total answers/comments: 2
Guest [Entry]


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."
Guest [Entry]

~/.bash_profile - This works for hostgator PS1 prompt