Sunday, September 19, 2010
7:30 PM

Commands to change the color of text and background in a terminal

Here are few commands to change the color of your terminal  background or the text

open a termimal and type the following command

printf '\e[1;34m'

this will make the text in the terminal to appear in blue.

To take it back to default

printf '\e[0;30m'

You can also change the backgound using

printf '\e[1;40m'

This will make the backgound black.

The effects are not permanent so if you close the terminal and open, you will get back your default terminal.

To know more about the working of these commands you can check out

http://bashscript.blogspot.com/2010/01/shell-colors-colorizing-shell-scripts.html

0 comments:

Post a Comment