Shell/Bash: bash change output color Example

By

Shell/Bash Example: This is the "bash change output color" Example. compiled from many sources on the internet by SimpleTutorials.org

bash change output color

echo -e '\e[31m'	# The output color is now red

Reset = '\e[0m'
Bright = '\e[1m'
Dim = '\e[2m'
Underscore = '\e[4m'
Blink = '\e[5m'
Reverse = '\e[7m'
Hidden = '\e[8m'

FgBlack = '\e[30m'
FgRed = '\e[31m'
FgGreen = '\e[32m'
FgYellow = '\e[33m'
FgBlue = '\e[34m'
FgMagenta = '\e[35m'
FgCyan = '\e[36m'
FgWhite = '\e[37m'

BgBlack = '\e[40m'
BgRed = '\e[41m'
BgGreen = '\e[42m'
BgYellow = '\e[43m'
BgBlue = '\e[44m'
BgMagenta = '\e[45m'
BgCyan = '\e[46m'
BgWhite = '\e[47m'

color echo

echo -e "Default \e[34mBlue"



* Summary: This "bash change output color" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others