CmdID

CmdID / Commands

history

Manage command-line history. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Display the commands history list with line numbers

historyIdentify

Display the last 20 commands (in Zsh it displays all commands starting from the 20th)

history 20Identify

Display history with timestamps in different formats (only available in Zsh)

history -dIdentify

clear the commands history list

history -cIdentify

Overwrite history file with history of current Bash shell (often combined with history -c to purge history)

history -wIdentify

delete the history entry at the specified offset

history -d offsetIdentify

Add a command to history without running it

history -s commandIdentify

Run a command without adding it to history by adding a leading space

<Space>command

Windows

from tldr-pages, CC BY 4.0

This command is an alias of Get-History.