Skip to content

Latest commit

 

History

History
380 lines (236 loc) · 4.21 KB

File metadata and controls

380 lines (236 loc) · 4.21 KB

CMD Keyboard Shortcuts

This document contains useful keyboard shortcuts for Windows Command Prompt (CMD) that can improve productivity and make navigation easier.


Basic Editing Shortcuts

Ctrl + C

Description

Copies selected text.

Usage

  1. Select text using the mouse.
  2. Press:
Ctrl + C

Ctrl + V

Description

Pastes copied text.

Usage

Ctrl + V

Ctrl + A

Description

Selects all text in the Command Prompt window.

Usage

Ctrl + A

Ctrl + F

Description

Searches for text in the Command Prompt window.

Usage

Ctrl + F

Command History Shortcuts

Up Arrow (↑)

Description

Displays the previous command.

Usage


Down Arrow (↓)

Description

Displays the next command in history.

Usage


F7

Description

Displays a list of previously executed commands.

Usage

F7

Example

1  dir
2  cd Documents
3  ipconfig
4  ping google.com

F8

Description

Cycles through commands that match previously typed text.

Example

If you previously ran:

ping google.com
ping github.com

Type:

ping

Press:

F8

CMD cycles through matching commands.


F9

Description

Runs a command from history by its number.

Usage

  1. Press:
F9
  1. Enter the command number from the F7 list.

Auto Completion Shortcuts

Tab

Description

Auto-completes file and folder names.

Example

Type:

cd Doc

Press:

Tab

Result:

cd Documents

Shift + Tab

Description

Cycles backward through matching files and folders.

Usage

Shift + Tab

Function Key Shortcuts

F1

Description

Displays the previous command one character at a time.


F2

Description

Copies the previous command up to a specified character.

Example

Press:

F2

Enter:

\

CMD copies characters up to "".


F3

Description

Repeats the last command.

Usage

F3

F4

Description

Deletes text from the cursor position up to a specified character.


F5

Description

Cycles backward through command history.


F6

Description

Inserts an EOF (End of File) character.

Output

^Z

Window Navigation Shortcuts

Alt + Enter

Description

Toggles full-screen mode on supported systems.


Alt + Space

Description

Opens the Command Prompt window menu.


Ctrl + Mouse Wheel

Description

Zooms in or out by changing font size.


Text Navigation Shortcuts

Ctrl + Left Arrow

Description

Moves cursor one word left.

Usage

Ctrl + ←

Ctrl + Right Arrow

Description

Moves cursor one word right.

Usage

Ctrl + →

Home

Description

Moves cursor to the beginning of the line.


End

Description

Moves cursor to the end of the line.


Useful Productivity Shortcuts

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

Tips

✅ 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.


Summary

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.