history (command)

In computing, various shells maintain a record of the commands issued by the user during the current session.

Users can supply options and arguments to the command to manipulate the display of the history list and its entries.

For example, an environment variable can be set to control the number of commands to retain in the list.

[3] It is also included as external command in PTS-DOS where it keeps a resident part, sometimes in conventional memory.

If the first word of the savehist shell variable is set to a number, at most that many lines are saved.

In addition, PowerShell includes the Add-History, Clear-History, Get-History, and Invoke-History cmdlets.