Change the color of your terminal

To change the color of the terminal :

tput setaf number

Use the below numbers for the corresponding color.

Black : 0
Red : 1
Green : 2
Yellow : 3
blue : 4
Magenta : 5
Cyan : 6
White : 7

Eg : For Green(my fav :)),

tput setaf 2

Enjoy 🙂

Advertisements

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