How can I set a nice looking bash prompt on my Linux VPS?

Add the following lines to the end of /etc/profile

PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\[\e[0m\]\[\e[31;1m\]\u@\[\e[34;1m\]\h:[\W]$\[\e[0m\] "
export PS1

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How do I change my VPS's hostname

If you want to change your Virtual Private Server's hostname, you first need to login to your VPS...

What is a Virtual Private Server?

A Virtual Private Server, or VPS is simply put, a "slice" of a dedicated server. Dedicated...

How can I secure my VPS?

If you own, or run a Virtual Private Server, or Dedicated server on the internet, then you need...

how do I disable root logins?

Disabling direct root login to your VPS is almost a must!...

How to change SSH default port

Most script kiddies & crackers will first try and telnet to a server to see if Telnet is...