change terminal prompt

Asked by Robert Ashley

As a new Linux user, I have some questions about the terminal prompt.
I am using Ubuntu Ver. 7.04
I have read that the prompt can be changed by issuing the command "PS1=..."
while using the terminal (where ... is the desired type of prompt.
I tried this and it does work IF terminal is already in use.
There appear to be two files that initialize the prompt when terminal is started, ie. /etc/bash.bashrc and /etc/profile.
I have edited each of these two files to change the prompt to my preference, but the prompt does not change upon restarting terminal, that is - the default prompt still appears.

Question; Is there another setup or default procedure that controls the initial prompt for terminal?
It seems that the two files, "bash.bashrc" and "profile" are ignored when starting terminal.

This is not a serious problem, but my personal choice would show a different prompt.

I will certainly appreciate any educational help anyone can send my way about this situation.
Robert Ashley
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

The prompt is set in the ~/.bashrc script.

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#2

Forgot to add, you will not normally see this file (the beginning dot hides it).
You can anyhow edit the file, and if you want to see it listed, use the ls -a command.

Revision history for this message
Robert Ashley (kd7b) said :
#3

Thanks very much. That's whaty I needed!