$
export PS1="\e[0;31m[\u@\h \W]\$ \e[m "
The color can be chosen from below table values
List of Color code
Color | Code |
Black | 0;30 |
Blue | 0;34 |
Green | 0;32 |
Cyan | 0;36 |
Red | 0;31 |
Purple | 0;35 |
Brown | 0;33 |
Blue | 0;34 |
Green | 0;32 |
Cyan | 0;36 |
Red | 0;31 |
Purple | 0;35 |
Brown | 0;33 |
Change the background color in Linux Terminal: