Default
[oracle@ol7-122 agap]$ echo $PS1
[\u@\h \W]\$
Red
[oracle@ol7-122 agap]$ export PS1="\e[0;31m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
Green
[oracle@ol7-122 agap]$ export PS1="\e[0;32m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
Brown
[oracle@ol7-122 agap]$ export PS1="\e[0;33m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
Blue
[oracle@ol7-122 agap]$ export PS1="\e[0;34m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
Purpel
[oracle@ol7-122 agap]$ export PS1="\e[0;35m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
Cyan
[oracle@ol7-122 agap]$ export PS1="\e[0;36m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
White
[oracle@ol7-122 agap]$ export PS1="\e[0;37m[\u@\h \W]\$ \e[m "
[oracle@ol7-122 agap]$
e.g.
Prodution
[oracle@ol7-122 agap]$
Qualitya
[oracle@ol7-122 agap]$
Test
[oracle@ol7-122 agap]$
Inside VI
# comment inside
:highlight Comment ctermfg=green
# comment inside
or
:color desert
To set up permantly
vi ~/.vimrc
add
set background=dark
To set up title in .bash_profile
mytitle=" ORACLE DATABASE 12c (Production) "
echo -e "\e[1;31m$mytitle\e[0m"
line=" ================================ "
echo -e "\e[1;31m$line\e[0m"
[root@ol7-122 ~]# su - oracle
Last login: Wed Oct 11 18:25:30 BST 2017 on pts/3
ORACLE DATABASE 12c (Production)
=================================
To chow raw number
:set number
To found and change
:%s/rman/standby/