Bash colour codes

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'

0
0
Rubixphys12 15320 points

                                    BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)

0
0
0
0
Awgiedawgie 440215 points

                                    echo -e "Default \e[34mBlue"

0
0
3.33
3
Awgiedawgie 440215 points

                                    # Reset
Color_Off='\033[0m'       # Text Reset

# Regular Colors
Black='\033[0;30m'        # Black
Red='\033[0;31m'          # Red
Green='\033[0;32m'        # Green
Yellow='\033[0;33m'       # Yellow
Blue='\033[0;34m'         # Blue
Purple='\033[0;35m'       # Purple
Cyan='\033[0;36m'         # Cyan
White='\033[0;37m'        # White

# Bold
BBlack='\033[1;30m'       # Black
BRed='\033[1;31m'         # Red
BGreen='\033[1;32m'       # Green
BYellow='\033[1;33m'      # Yellow
BBlue='\033[1;34m'        # Blue
BPurple='\033[1;35m'      # Purple
BCyan='\033[1;36m'        # Cyan
BWhite='\033[1;37m'       # White

# Underline
UBlack='\033[4;30m'       # Black
URed='\033[4;31m'         # Red
UGreen='\033[4;32m'       # Green
UYellow='\033[4;33m'      # Yellow
UBlue='\033[4;34m'        # Blue
UPurple='\033[4;35m'      # Purple
UCyan='\033[4;36m'        # Cyan
UWhite='\033[4;37m'       # White

# Background
On_Black='\033[40m'       # Black
On_Red='\033[41m'         # Red
On_Green='\033[42m'       # Green
On_Yellow='\033[43m'      # Yellow
On_Blue='\033[44m'        # Blue
On_Purple='\033[45m'      # Purple
On_Cyan='\033[46m'        # Cyan
On_White='\033[47m'       # White

# High Intensity
IBlack='\033[0;90m'       # Black
IRed='\033[0;91m'         # Red
IGreen='\033[0;92m'       # Green
IYellow='\033[0;93m'      # Yellow
IBlue='\033[0;94m'        # Blue
IPurple='\033[0;95m'      # Purple
ICyan='\033[0;96m'        # Cyan
IWhite='\033[0;97m'       # White

# Bold High Intensity
BIBlack='\033[1;90m'      # Black
BIRed='\033[1;91m'        # Red
BIGreen='\033[1;92m'      # Green
BIYellow='\033[1;93m'     # Yellow
BIBlue='\033[1;94m'       # Blue
BIPurple='\033[1;95m'     # Purple
BICyan='\033[1;96m'       # Cyan
BIWhite='\033[1;97m'      # White

# High Intensity backgrounds
On_IBlack='\033[0;100m'   # Black
On_IRed='\033[0;101m'     # Red
On_IGreen='\033[0;102m'   # Green
On_IYellow='\033[0;103m'  # Yellow
On_IBlue='\033[0;104m'    # Blue
On_IPurple='\033[0;105m'  # Purple
On_ICyan='\033[0;106m'    # Cyan
On_IWhite='\033[0;107m'   # White

3.33 (3 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
bash colors in script color my bash echo with colour color to bash bash set color bash colour scheme echo bash change color bash command color codes bash use colors color shell bash echo with colors bash colored output in bash colour bash output color on bash add color in shell script output bash text colors bash print in color add color to bash output bash script color output bash colors echo make echo colors bash colors in terminal bash print with color bash echo colored output bash command color bash echo colour codes color echo bash color shcemes bash colors examples terminal bash colors bash script colours bash change echo color echo in color color the echo bash give terminal output color echo in colors how to make shell output color in linux set bash colours bash shell coloring echo in colour color bash [ _bash color scheme echo change color bash shell script echo color bash opposite color of background bash sh opposite color bash color string linux bash colors colored bash colorize output bash bash color script bash change color colori bash bash syntax coloring echo colors bash color example bash colors linux colorize bash output color in bash script how to set echo color echo bash colors color echo inside shell script sh change text color sh script color text bash cyan bash orange color bash color white color string bash bash echo green text how to customize color of terminal output linux shell how to echo is color bash-colors.md orange green colour test in shell colored terminal output xtrem color wyello bash shell file change color color \033[ bold colorful command bash bash echo color text bash color scheme bash ansi colors linux bash text color for command outputs bash font color yellow color bash echo change background and font color echo bash yellow font color echo linux echo colorful text bash shell script terminal colors styling and color text bash styling and colored text bash ansi color codes linux shell shell coloring code change color of echo change color echo bash color bash shell print linux text in green bashrc colors cyan bash terminal color escape codes bash shell script color output transoarent shell script color output echo with colors \33 color codes bash echo with color oneline change font color linux without echo it shell color bash text color generator shell echo with color white background ascii bash bash script print to screen in other color bash colored text when i write shell script its not colored how to color text when executing shell bash bash invert color text unix string color echo with color bash display color in bash bash print color change echo color in bash bash colorful text how to add colors to text in sh echo colored text linux bash yellow text bash purple color bash white color bash how to color text read bash with colors how to color bash shell ouput bash coloured output linux shell color character bash color messages print color in terminal using bash how to pring color on terminal bash colour bash shell colorized output bash echo color tput bash script print colors linux yellow text checking my terminal colors bash xan you change the color of echo text how to change the color of string output bash script color white linux bash script colors bash colour bash terminal color codes bash script colour bash colorzie text dpcum,ent bash colorzie text colorize text bash does bash use simi colorn how to color terminal text bash color coodes unix change color bash color:red bash how to change echo color terminal color msg How tomake colored text in shell change terminal message color color shell how to print in color in bash colored bash client colored bash blue color change color of echo bash shellscript colors print text in green linux yellow color sh linux bash script green text color text in bash bash terminal change output to red on black bold in bash bash echo in color echo in red color all text terminal colors bash sh colors make echo with different color coloured output in shell bash colorized unix colors bash bash colors orange echo color terminal brown colour bash script brown colour not working on bash script terminal echo different bash color what are codes called linux cli colour codes tardis blue linux cli colour codes best color for unix shell scripting bash color amazing bash function declaration is green bash function is green shell script echo colou linux shell echo commands in colour bash colorize output add color to terminal output bashrc color codes color in bash purple in bash echo color in bash format color bash linux echo color text how to echo color in bash how to color output in bash color message in console bash bash echo in red color terminal color e[34 bash ansicolor bash console colors shell script color echo output iwth colors bash echo her color all bash colors what color codes does bash use bash red coutput colored text terminal bash text color ansi color codes bash bold orange in bash echo green text bash scripting change terminal color bash colorful echo colored text how tro color text in bash script shell colors linux color codes it bash text color bash red message format string color console linux ldarwin echo ansi color text print bash color codes colors in bash linux print color echo text in bold red color bash pront clear colors bash console color codes bash shell scripting color clicker color coded terminal messages print green text in bash colors terminal yellow unix color echo color bash change terminal output color console cyan color bash color line linux terminal color format printing specific data in colors shell script bash shell color codes bash how to define colors why terminal output is red bash script colors bash script color white bash white color bash bash echo bold color bash output with color bash green color how to have bash script output colored text bash echoing string with color shell color codes echo 0 character from a text file with color echo 0 with color linux echo with color linux bash echo green dot change color script sh linux echo ansi code echo color normal bash green clor bash scripting colors bash shell scipting colors linux shell color codes shell script echo error with color print command with color in bash echo red console color red and white sh echo print red bash make the word bigger and green colored bash text avoid red color in bash bash prompt color codes unix white color red terminal color colored text in terminal color in bash shell color terminal script echo in different color echo in different color bash color mode bash green color console color bash green color bash bash super cool colors reasons to use colors in a bash script put color on text bash bash script print in different colors using texts and colors bash scripting green color linux terminal shell script shell change color IN SCRIPT change color of text in bash bash colour codes write in color echo bash bash change color of text bash echo color string bash \033[ Black Text output color text with echo in linux shell script test output is the right color bash how to echo without escaping color codes what are color codes in shell biin bash crashed no coolors linux color print how to give echo color in bash color code bash ascii bash color generator bash echo with color bash ouput in colors green bash colors how to make colorful text in bash echo ansi code linux linux echo with color linux bash color bash yellow color linux echo oclor colored echo bash bash .sh echo text and color bash color outpu9t bash red color bash color list color code .sh files bash color output ubuntu change color of echoed text change font color in shell echo shell echo color bold font color for bash code with color linux bash colors code bash color command colorfull bash bash shell echo with color color 10 bit script shell ascii color codes bash bash color numbers shell color text shell print color linux command to color size output blue shell color script print a character in with color bash how to set color for command in bash script bash what is 0m color terminal bash ubuntu script echo color codes blue bash color echo bash in color how to color the outputs of bash script bash output colored output bash output colored text bash output color linux bash script color text bash echo ansi colors sudo script make it print colored messages showig colorful messages in shell script add color to echo bash shell colour codes echo colour bash ubuntu colour output bash echo color command bashcolor bash colored output how to add color in shell script using ansi color inside linux script echo colores en bash ascii colors bash linux echo colored oytpyt bash change output color bash color commanfd bash color codes bash list colors bash color text color bash console bash colours bash echo red text bash add color to text bash print colored text bash corlor bash color code linux color bash bash echo colors colors in bash text green color bash add colors in bash script bash light red bold color codes in bash bash color commands bash green text echo bash green text linux bash coloured string generator bash bold color code all bash color codes how to put bash color codes in a string linux change color of echp bash echo green shell put color in echo bash colors echo color bash echo colored display coloured text in bash echo how to do color text in bash script bash echo in blue echo with color end the colorvalue in shell script bash color echo how to color text in bash color codes bash blue text bash How to get green text in bash colors bash bash print color line bash color color echo bash
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source