This document contains useful keyboard shortcuts for Windows Command Prompt (CMD) that can improve productivity and make navigation easier.
Copies selected text.
- Select text using the mouse.
- Press:
Ctrl + C
Pastes copied text.
Ctrl + V
Selects all text in the Command Prompt window.
Ctrl + A
Searches for text in the Command Prompt window.
Ctrl + F
Displays the previous command.
↑
Displays the next command in history.
↓
Displays a list of previously executed commands.
F7
1 dir
2 cd Documents
3 ipconfig
4 ping google.com
Cycles through commands that match previously typed text.
If you previously ran:
ping google.com
ping github.qkg1.topType:
pingPress:
F8
CMD cycles through matching commands.
Runs a command from history by its number.
- Press:
F9
- Enter the command number from the F7 list.
Auto-completes file and folder names.
Type:
cd DocPress:
Tab
Result:
cd DocumentsCycles backward through matching files and folders.
Shift + Tab
Displays the previous command one character at a time.
Copies the previous command up to a specified character.
Press:
F2
Enter:
\
CMD copies characters up to "".
Repeats the last command.
F3
Deletes text from the cursor position up to a specified character.
Cycles backward through command history.
Inserts an EOF (End of File) character.
^Z
Toggles full-screen mode on supported systems.
Opens the Command Prompt window menu.
Zooms in or out by changing font size.
Moves cursor one word left.
Ctrl + ←
Moves cursor one word right.
Ctrl + →
Moves cursor to the beginning of the line.
Moves cursor to the end of the line.
| Shortcut | Description |
|---|---|
| Ctrl + C | Copy text |
| Ctrl + V | Paste text |
| Ctrl + A | Select all |
| Ctrl + F | Find text |
| ↑ | Previous command |
| ↓ | Next command |
| Tab | Auto-complete |
| Shift + Tab | Reverse auto-complete |
| F1 | Previous command character-by-character |
| F3 | Repeat previous command |
| F7 | Command history list |
| F8 | Search matching commands |
| F9 | Run command from history |
| Home | Move to line start |
| End | Move to line end |
| Ctrl + ← | Move one word left |
| Ctrl + → | Move one word right |
✅ Use Tab to avoid typing long file and folder names.
✅ Use F7 to quickly access command history.
✅ Use Ctrl + C and Ctrl + V for faster command management.
✅ Use Up Arrow instead of retyping frequently used commands.
✅ Use Ctrl + Left/Right Arrow for faster editing of long commands.
Learning CMD keyboard shortcuts can significantly improve speed and productivity while working in the Windows Command Prompt. Combining these shortcuts with CMD commands allows efficient navigation, troubleshooting, and system management.