Command Prompt tricks you did not know

Command Prompt tricks you did not know

Play this article

Change colors

You can change color using the following command in cmd.

color <color-code>

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

help color

The following command will change the color of the terminal:

color 04


Change the Prompt in CMD

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

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...":

title Hacking in progress...

Watch star wars movie in CMD

Do you know that you can watch star wars movies 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:



Show/Hide a Folder

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

Attrib +h +s +r web

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

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? aux

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

md con\
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!

If you liked this post, subscribe to my newsletter to never miss out on my blogs, product launches and tech news.

Abhiraj's Dev-letter