Hi,

My prompt looks like this

[root@x1-6-00-c0-9f-cc-er-57 ~]#

It used to be something like

[root@localhost ~]#

What is wrong? Can any one help? Thanks..

To change it look in ~/.bashrc. It should have an entry that looks like this PS1='\u \w\# ' . Change it too PS1='[\u@\h \w] \# '

To change it look in ~/.bashrc. It should have an entry that looks like this PS1='\u \w\# ' . Change it too PS1='[\u@\h \w] \# '

thanks,

how do I open it though?

If I do this then here is what I get

[root@x1-6-00-c0-9f-bb-ba-57 ~]# ~/.bashrc
bash: /root/.bashrc: Permission denied

What to do? Thanks...

With a text editor nano ~/.bashrc

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.