changing bash
I have just installed suse 7.3
everything works fine and i'm on the way to learn linux now. could anyone tell me how to change the prompt signs in my bash - user specific or for all users? is there a way to personalize the login-message too? thx a lot jackcy |
the login message is /etc/issue and is usually recreated every boot from the /etc/rc.local script (i think) so to make your changes, you either need to stop the file being re-written, or to overwrite it your self, by adding something like
echo hello, i rock > /etc/issue at the end of /etc/rc.local prompt.. well you just need to set the PS1 variable PS1=[\u@\h \W]\$ gives me [chris@trevor chris]$ you've got the option of changing colors and things, but i don't know the escape codes for them off hand. to specify them per user you can add the line to /home/username/.bashrc and that will then only affect each given user check the link on my sig, there's a number of online books that will cover these basic questions |
|
All times are GMT -5. The time now is 11:09 AM. |