Command Prompt tricks you did not know

banner

Change colors

You can change color using the following command in cmd.

1
color <color-code>

The following command will give you a list of all the colors you can use in cmd:

1
help color

The following command will change the color of the terminal:

1
color 04

changedcolor

Change the Prompt in CMD

You can change the prompt text in the cmd using the following command:

1
prompt abhiraj@hacker$G

Here, $G is a special character for the '>' symbol

Change Title in CMD

If you want to change the title in cmd, you can simply use the title command followed by the title. Following title command will change the cmd title to "Hacking in progress...":

1
title Hacking in progress...

Watch Star Wars in CMD

Do you know that you can watch Star Wars in the cmd? Well if you don't, you need to fire the following command and you should be welcomed with the Star Wars movie:

1
telnet towel.blinkenlights.nl

starwars

Show/Hide a Folder

If you want to hide a folder named "web" in a directory, you can use the following command:

1
Attrib +h +s +r web

Once your folder is hidden, you can show it again by firing the following command:

1
Attrib -h -s -r harry

Create a Folder with reserved names

Do you know that you cannot create a folder named aux or con in Windows?

These are the reserved names that Windows uses for internal purposes. You can still create a folder named con or aux by firing the following command in cmd:

1
md con\
2
md aux\

Thanks for reading!

Make sure to try all these tricks on your PC. Also if you know some other trick, feel free to share it. Have fun!

Liked this article? Share it with your network on Linkedin. Have a question, feedback or simply wish to talk to me? Shoot me a DM or send me an email and I'll get back to you as soon as possible.

Have a great one.

– Abhiraj