BASH - Adding coloured text

This will simply print your text in red. 

echo -e '\E[31mThis prints in red.'; tput sgr0

If you need any further information or want to know how to add bold, underlining, or background colours to your text click here. 

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001