PowerShell CheatSheet – PowerShell Hotkeys
Here are the supported hotkeys by the PowerShell console
Hotkey | Explanation |
---|---|
Up arrow | Scan backward through your command history. |
Down arrow | Scan forward through your command history. |
Left arrow | Move cursor one character to the left on your command line. |
Right arrow | Move 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 up | Display the first command in your command history. |
Page down | Display the last command in your command history. |
Home | Move the cursor to the beginning of the command line. |
End | Move the cursor to the end of the command line. |
Control + Left arrow | Move the cursor one word to the left on your command line. |
Control + Right arrow | Move the cursor one word to the right on your command line. |
Control + c | Cancel the current operation. |
Control + Break | Forcefully close the Windows PowerShell window. |
Control + Home | Deletes characters from the beginning of the current command line up to (but not including) the current cursor position. |
Control + End | Deletes characters from (and including) the current cursor position to the end of the current command line. |
F1 | Move 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. |
F2 | Creates a new command line by copying your last command line up to the character that you type. |
F3 | Complete the command line with content from your last command line, from the current cursor position to the end. |
F4 | Deletes characters from your cursor position up to (but not including) the character that you type. |
F5 | Scan backward through your command history. |
F7 | Interactively 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. |
F8 | Scan backward through your command history, only displaying matches for commands that match the text you’ve typed so far on the command line. |
F9 | Invoke 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 + F7 | Clear the command history list. |
Esc | Clear the current line. |
Tab | Use the completion. |