Forrest logo
back to the doskey tool

doskey:tldr:dd37a

doskey: Display all commands that are stored in memory.
$ doskey /history
try on your machine

The command "doskey /history" is used in the Windows Command Prompt to display the command history.

When you execute various commands in the Command Prompt, they are stored in a command history buffer. The "doskey /history" command allows you to view the previously executed commands in that history.

By running this command, you can see a list of the recently used commands with their corresponding command numbers. The command history can be useful when you want to quickly repeat a previous command without typing it again from scratch.

Once you have the list of command numbers, you can use the doskey command followed by the command number to run a specific command. For example, you can type "doskey /history" to get the history list, note the command number for the desired command, and then use "doskey " to execute that specific command again.

Overall, the "doskey /history" command provides a convenient way to review and reuse commands that you have previously executed in 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 doskey tool