Forrest logo
back to the prompt tool

prompt:tldr:8e0b4

prompt: Change the prompt to show the current time first.
$ prompt $T $P$G
try on your machine

The command "prompt $T $P$G" is used to change the appearance of the command prompt in certain operating systems, such as MS-DOS or Windows Command Prompt.

Here's a breakdown of what each part of the command means:

  • "prompt" is the command used to change the command prompt.
  • "$T" is a placeholder for the current time. When the command is executed, it will be replaced with the current time in the format specified by the operating system.
  • "$P" is a placeholder for the current drive and path. It represents the current working directory where the command prompt is located.
  • "$G" is a greater-than sign (>) that is included in the prompt. It is typically used to indicate that the command prompt is ready to accept a new command.

When this command is executed, the command prompt will be altered to display the current time, followed by the current drive and path, and then the greater-than sign. This can be helpful for keeping track of time or for personalizing the appearance of the command prompt.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the prompt tool