PowerShell history of commands

An alternate command is to type e.g #ls and press Tab keep pressing tab to cycle through all command history that starts with ls.

In previous versions you could type ls then F8 to match history. Keep pressing F8 to cycle through multiple matches.

Note:ls is just a placeholder in this case. Replace it with any command you want.


As of today PowerShell supports the Ctrl + R shortcut.

Simply press Ctrl + R when in the PowerShell console and start typing any part of a command you have run before.


Alternatively:

Start typing part of a command you have run before, and press or hit F8.

Keep pressing F8 to cycle through similar commands.

Tags:

Powershell