![Forrest logo](/images/logo.png)
doskey:tldr:dd37a
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
Overall, the "doskey /history" command provides a convenient way to review and reuse commands that you have previously executed in the Command Prompt.