PowerShell CheatSheet – PowerShell Hotkeys

Here are the supported hotkeys by the PowerShell console

HotkeyExplanation
Up arrowScan backward through your command history.
Down arrowScan forward through your command history.
Left arrowMove cursor one character to the left on your command line.
Right arrowMove cursor one character to the right on your command line. If at the end of the line, inserts a character from the text of your last command at that position.
Page upDisplay the first command in your command history.
Page downDisplay the last command in your command history.
HomeMove the cursor to the beginning of the command line.
EndMove the cursor to the end of the command line.
Control + Left arrowMove the cursor one word to the left on your command line.
Control + Right arrowMove the cursor one word to the right on your command line.
Control + cCancel the current operation.
Control + BreakForcefully close the Windows PowerShell window.
Control + HomeDeletes characters from the beginning of the current command line up to (but not including) the current cursor position.
Control + EndDeletes characters from (and including) the current cursor position to the end of the current command line.
F1Move cursor one character to the right on your command line. If at the end of the line, inserts a character from the text of your last command at that position.
F2Creates a new command line by copying your last command line up to the character that you type.
F3Complete the command line with content from your last command line, from the
current cursor position to the end.
F4Deletes characters from your cursor position up to (but not including) the character that you type.
F5Scan backward through your command history.
F7Interactively select a command from your command history. Use the arrow keys to scroll through the window that appears. Press the Enter key to execute the command, or use the right arrow key to place the text on your command line instead.
F8Scan backward through your command history, only displaying matches for commands that match the text you’ve typed so far on the command line.
F9Invoke a specific numbered command from your command history. The numbers of
these commands correspond to the numbers that the command-history selection window (F7) shows.
Alt + F7Clear the command history list.
EscClear the current line.
TabUse the completion.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top