history
Manage command-line history. tldr-pages
On Windows
Several platforms
Display the commands history list with line numbers
historyIdentifyDisplay the last 20 commands (in Zsh it displays all commands starting from the 20th)
history 20IdentifyDisplay history with timestamps in different formats (only available in Zsh)
history -dIdentifyclear the commands history list
history -cIdentifyOverwrite history file with history of current Bash shell (often combined with history -c to purge history)
history -wIdentifydelete the history entry at the specified offset
history -d offsetIdentifyAdd a command to history without running it
history -s commandIdentifyRun a command without adding it to history by adding a leading space
<Space>commandWindows
This command is an alias of Get-History.