Windows Command Prompt Shortcuts

Windows Command Prompt keyboard shortcuts with key combinations, actions, and usage notes.

How to use this reference

Use this category reference to find shortcuts for the platform shown. Start with the section for your operating system, read the action and description, and try the shortcut in an appropriate application. Keys joined with a plus sign are held together; alternatives let you choose the combination that works on your keyboard. A gesture requires a compatible touchpad or touch screen rather than a physical keyboard.

Before practicing, check which window has focus. Text fields, browser tabs, terminal sessions, and system dialogs can interpret the same keys differently. Save any open work before testing commands that close a window, delete content, or change system settings. Accessibility commands may need to be enabled in settings first, and a laptop may require the Fn key for function keys. If a combination is intercepted by an application or a custom keymap, consult its built-in help and your operating system settings. Follow the full platform guide for related commands and additional context.

Windows 11

View full Windows 11 guide

ActionShortcutDescription
Open Windows TerminalWin + X then IOpen Windows Terminal from the power menu
Open Terminal (Admin)Win + X then AOpen Windows Terminal as administrator
Autocomplete (Tab)TabAutocomplete file/folder names; press again to cycle through matches
History Search UpUpRecall the previous command from history
History Search DownDownGo forward through command history
Clear ScreenCtrl + LClear the terminal screen (same as 'cls' command)
Interrupt / CancelCtrl + CStop the currently running command
Copy in TerminalCtrl + CCopy selected text in Windows Terminal
Paste in TerminalCtrl + VPaste into Windows Terminal
New Terminal TabCtrl + Shift + TOpen a new tab in Windows Terminal
Close Terminal TabCtrl + Shift + WClose the current Windows Terminal tab
Move to Word StartCtrl + LeftMove cursor to the start of the previous word in the prompt
Move to Word EndCtrl + RightMove cursor to the end of the next word in the prompt
Delete to Start of LineCtrl + HomeDelete everything from the cursor to the start of the line

Windows 10

View full Windows 10 guide

ActionShortcutDescription
Open Command PromptWin + X then COpen Command Prompt from the power user menu
Open PowerShellWin + X then IOpen PowerShell from the power user menu
Autocomplete (Tab)TabAutocomplete file/folder names at the prompt
History UpUpRecall the previous command from history
History DownDownGo forward through command history
Clear ScreenCtrl + LClear the terminal display
Interrupt / CancelCtrl + CStop the currently running command
Copy in TerminalCtrl + CCopy selected text in Windows Terminal (modern terminal)
Paste in TerminalCtrl + VPaste into the Windows Terminal
New TabCtrl + Shift + TOpen a new tab in Windows Terminal
Move to Word StartCtrl + LeftMove cursor to the previous word at the prompt
Move to Word EndCtrl + RightMove cursor to the next word at the prompt