We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 08/26/06


Tagged

Shell Bash colours


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

yuconner


shell colours


Published in: Bash 


Shell text formatted bold red. Reference follows.

Attribute codes:
00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed

Text color codes:
30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white

Background color codes:
40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white


  1. echo -e "\033[01;31mhello world\033[00m"

Report this snippet 

You need to login to post a comment.