Change your TTY promt colour system in linux


Hi friends,

We can change our tty 1 to 6 promt colour system and also change the font as bold. To change follow the following simple instructions.

Step1:

Login as super user and open your /etc/re.local with your favourite editor.

Step2:

Add the following lines,

echo -en “\33[32m\33[8]” > /dev/tty1
echo -en “\33[34m\33[8]” > /dev/tty2
echo -en “\33[31m\33[8]” > /dev/tty3
echo -en “\33[35m\33[8]” > /dev/tty4
echo -en “\33[33m\33[8]” > /dev/tty5
echo -en “\33[1;31m\33[8]” > /dev/tty6

Step3:

In last line, 1;31 means, 1 =>bold and 32 => light red colour

Simply reboot. That’s all You can see the various colous in all TTY prompts. Just press Ctrl + Alt +F1,  Ctrl + Alt +F2,  Ctrl + Alt +F3,  Ctrl + Alt +F4, Ctrl + Alt +F5,  Ctrl + Alt +F6🙂

More info about colurs in terminal go http://www.linuxselfhelp.com/howtos/Bash-Prompt/Bash-Prompt-HOWTO-6.html

Enjoy it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s