Bash: echo: text color, background color

echo displays message in terminal emulator. -e flag enables interpretation of backslash-spaced characters. \e[1;31m escape string sets character color to red. \e[1;42m escape string sets character background color to green. \e[0m escape string resets colors back to default.

echo Man Page