Sunday 28 June 2020

How to change color in Command Prompt CMD?

  No comments

 

Bored of having white text with black background color in command prompt? Wondering on how to change color in CMD? In this article I have described on how to add a splash of color to Command Prompt and make it unique.




What is Command Prompt?

I hope you all are aware of use of  command prompt. Isn't it? 
No? Ok. Let me describe it in few words. Command Interpreter or simply command prompt is a shell program on windows which supports set of commands and utilities.

Examples of some commands:
CD     - Change Directory,
TREE - to view the tree structure of your folders,
TIME -  to show the time of your system.


There are 2 ways of changing the color of command prompt.
1. Using command
2. Using GUI


How to Change Color in Command Prompt without using any command ?


(i.e) using Graphical User Interface (GUI)







It is very simple. You can perform this easily by  right-clicking at the top corners of the Command Prompt and selecting Properties menu. There, you will find the Colors tab , now look for the options to change the background and text color. And yes. Congratulations. You are done!

 How to change color of Command Prompt using few easy commands ?


(i.e) Using Command in CMD



Below is the list of color codes you can choose to set your desired foreground and background color.

0 = Black
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White

In order to set the color you chose, enter COLOR, then the option for the background color followed by the font color.
For example,
If you want to change your CMD background color as blue and foreground color as Light Red, then  you can specify it as

COLOR 1E



Same way,  if you like to make purple color as background and Green color as foreground then, use this command

COLOR 52




Some tips:
If you want to retain your selected color the next time you visit after restarting your PC, use the first method because second method will work until you close your CMD After closing your CMD, the color you have changed will be lost.

Hope you have enjoyed reading this information and learnt atleast something from it. If you have any queries, you can ask in the comment section.

No comments :

Post a Comment

Contact Form