Keyboard shortcuts for the Windows CMD shell and PowerShell.
MOVINGMove to beginning of line. [Home]Move to end of line. [End]Move one word to the left (backward). Ctrl + ←Move one word to the right (forward). Ctrl + →Move the cursor one character in the direction specified. Arrow keys ↑→↓←Move the screen one page up. Page upMove the screen one page down. Page downMove the cursor to the beginning of the buffer. Ctrl + Home (Mark mode)Move the cursor to the end of the buffer. Ctrl + End (Mark mode)EDITINGClear command line. ESCToggle Insert/Overwrite. INSERTAutocomplete folder/file name. [Tab]
also Shift+ [Tab]Erase line to the left. Ctrl + HomeErase line to the right. Ctrl + EndErase character to the left. ⌫Execute the current command. EnterContinue typing on the next line. Shift+EnterInsert a line break or as an escape character to make a literal character.
You can also break a line at the pipe '|' character without a line continuation character.
PowerShell 7 also allows the use of the pipe symbol at the start of a line as a
continuation character without needing a backtick. `Enter Mark mode. Ctrl + MSelect text in mark mode. Shift + ←/→Copy the selected text. Ctrl + C
or Ctrl + InsertPaste the selected text. Ctrl + V
or Shift + InsertDisplay the editing shortcut menu (mark/copy/paste).
If QuickEdit is disabled (in Properties>Options), then a Right-click will display an editing
shortcut menu.
To copy text to the Clipboard, right-click, choose Select, select the text and then press Enter. Alt + Space + ESignal end-of-file. Ctrl + ZDELETINGDelete the character under the cursor. DeleteDelete the character to the left of the cursor. ⌫ BackspaceClear the current line. EscDelete all characters in the line after the cursor. Ctrl+EndDelete all characters from the cursor to the beginning of a line. Ctrl+HomeOTHERScroll through history of typed commands. ↓ / ↑Clear the command history. Alt + F7Terminate execution or Cancel the current command (if nothing is selected). Ctrl + CSwitch to/from full screen mode. Alt + ENTER
or F11Scroll window up. ⇧ + PgUpScroll window Down. ⇧ + PgDn
Print characters of the previous command one by one. F1Repeat part of the previous command; up to character Z F2 ZRepeat the previous command. F3Beginning from the current cursor position, delete up to character Z. F4 ZScroll through history of typed commands (↑). F5Scroll the screen up or down one line. Ctrl ↑ / ↓Show history of previous commands. F7Clear command history. ALT + F7Move backwards through the command history, but only display commands
matching the current text at the command prompt. F8Run a specific command from the command history. F9
Application-level shortcuts:Find. Ctrl + ⇧ + FOpen the dropdown. Ctrl + ⇧ + SpaceOpen settings files. Ctrl ,Open settings files. Ctrl + Alt ,Tab management shortcuts:New tab. Ctrl + ⇧ + TNew tab. Ctrl + ⇧ + 1 thru 9Duplicate tab. Ctrl + ⇧ + DOpen next tab. Ctrl + TabOpen previous tab. Ctrl + ⇧ + TabOpen a specific tab. Ctrl + Alt 1 thru 9Pane management shortcuts:Move pane focus. Alt + ↑→↓←Resize a pane. Alt + ⇧ + ↑→↓←Split a pane. Alt + ⇧ + D
The control the split direction with:
Alt + ⇧ -
or Alt + ⇧ +Close pane. Ctrl + ⇧ + WClipboard integration:Copy the selected text. Ctrl + C
or Ctrl + ⇧ + C
or Ctrl + InsertPaste the selected text. Ctrl + V
or Ctrl + ⇧ + V
or Shift + InsertScrollback:Scroll up/Down. Ctrl + ⇧ + ↑
Ctrl + ⇧ + ↓Scroll up one page. Ctrl + ⇧ + Pg UpScroll down one page. Ctrl + ⇧ + Pg DnVisual adjustment:Adjust font size. Ctrl + =Adjust font size. Ctrl + -Reset font size. Ctrl + 0
⇧ is the Shift key
⌫ is the Backspace key
"If NumLock is on, pressing a key on the numeric keypad while holding SHIFT overrides NumLock and instead generates an arrow key" ~ OldNewThing
General Windows - Keyboard shortcuts.
MMCs - Shortcuts to popular Microsoft Management Consoles.
EXPLORER - Open Windows Explorer.
Doskey /history - Show history of previous commands.
Microsoft Keyboard Layout Creator - Remap keys. (see also remapkey.exe in the Windows 2003 resource Kit)
Equivalent bash Keyboard shortcuts