Change the Prompt Text in Command Prompt

 

3. Change the Prompt Text in Command Prompt

When you first open Command Prompt, the default text of the prompt is very boring. It does reflect the current working directory that the user is in, but it sure could use some customization. If you would like the prompt in your cmd window to say something other than the default, you can use the following trick.

  • Launch Command Prompt, and type “prompt” followed by the text that you want. Make sure you add “$G” to the end, to ensure that there is always the “>” sign at the end of the prompt, and you know where your command begins at.

Command Prompt Tricks

  • Hit Enter, and you will see the prompt in the cmd window change to your custom text.

Command Prompt Tricks

NoteThere are some more options like “$G” available, and you check out the entire list by typing “help prompt“. Also, you can reset the prompt back to its original state by simple typing “prompt” and hitting Enter.

Comments

Popular posts from this blog

Exercise: Write, compile and run a Java program

How to Hack WhatsApp Chats

Huawei nova 7 SE