prompt
The visual format of the prompt is governed by the PROMPT environment variable. By default, it is set to $P$G, where $P represents the current drive and path, and $G represents the > character.
To temporarily modify the prompt layout in your current session:
prompt $t $p$g
Common special codes include:
$P: Current drive and path$G:>symbol$N: Current drive letter$T: Current system time$D: Current system date$+: Displays plus signs (+) corresponding to the depth of thePUSHDdirectory stack
Try it safely
Run prompt in the practice shell →
Chapter 14: Dressing the Tower. A sandboxed Command Prompt; nothing touches your PC.