change color bash code example Example: How to Change BASH Prompt Color PS1="\[\033[42m\]\[\033[31m\]\u@\h:\w\$ "