[Linux]How to set back ground color for the message on console


The supported colors are red(41), green(42), yellow(43),blue(44),pink(45), greenish blue(46) , grey(47) and black(40)

Use the following command to set back ground message 

echo -e “33[xxm Hello World” where xx can be any value between 41-47 .

eg: echo -e “33[44m Hello world” will set blue back ground color 

 

Published by RNP

A person who likes learning new languages.

One thought on “[Linux]How to set back ground color for the message on console

Leave a comment