How to change the output color of echo in Linux
You can use these ANSI escape codes: And then use them like this in your script: which prints love in red. From @james-lim’s comment, if you are using the echo command, be sure to use the -e flag to allow backslash escapes. (don’t add “\n” when using echo unless you want to add an additional empty line)