root login directly into -bash-3.2#
Hi all,
i am using fedora 10 while i login as a normal user its working fine username@hostname while i login as a root user it goes directly into -bash-3.2# if i check pwd it shows /root till now i am not facing any problem as i am using as a normal user but how can i change -bash-3.2# to root@hostname which file and where to edit |
Hi,
what is the output of echo $PS1 you can also type bash and enter |
You can create a .bashrc file in your root directory
containing Code:
PS1="\[\u@\h:\W]# \[\e[0m\]" |
Hi,
You could setup a .bashrc & .bash_profile for your user; Code:
sample .bash_profile; Code:
sample .bashrc; |
Quote:
[\u@\h \W]\$ |
Quote:
http://www.linuxselfhelp.com/howtos/...t-HOWTO-2.html http://tldp.org/HOWTO/Bash-Prompt-HOWTO/ Did you bother to read the Post number 3 and 4 ???? Did you bother to thank the above people who have tried to help you ???? |
copy files from skel to /root.
Code:
cp /etc/skel/.* /root |
All times are GMT -5. The time now is 10:59 PM. |