HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

prompt — Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thepromptcommanddosstyleclichangedefault
windows

Problem

How to use the prompt command: Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/prompt>.

Solution

prompt — Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/prompt>.

Reset the prompt to the default setting:
prompt


Set a specific prompt:
prompt {{prompt}}


Change the prompt to show the current date first:
prompt $D $P$G


Change the prompt to show the current time first:
prompt $T $P$G


Change the prompt by adding a specific text first:
prompt {{text}} $P$G

Code Snippets

Reset the prompt to the default setting

prompt

Set a specific prompt

prompt {{prompt}}

Change the prompt to show the current date first

prompt $D $P$G

Change the prompt to show the current time first

prompt $T $P$G

Change the prompt by adding a specific text first

prompt {{text}} $P$G

Context

tldr-pages: windows/prompt

Revisions (0)

No revisions yet.