Command Line keyboard shortcuts

Command Line

defkey.com -
4 years ago
- Shortcuts

Did you know you can control Windows Command Prompt without using mouse?

You can click at anywhere you want to select text in Command Prompt. But if you want to just use keyboard, here are the shortcuts that will keep you covered.
1
Home

Move the selection point to the beginning of the current line

0
End

Move the selection point to the end of the current line

0
Ctrl +

Move the selection point to the beginning of the previous work on the current line

0
Ctrl +

Move the selection point to the beginning of the next work on the current line

0
Ctrl +

Scroll the page up without moving insertion point

0
Ctrl +

Scroll the page down without moving insertion point

0
Ctrl + M

Enter or exit mark mode. In mark mode you can use arrow keys to navigate around in the window

Windows Command Prompt provides various shortcuts for selecting text. You can select just a character, word, line or even whole screen at once.
0
Ctrl + A

Select all text in the current line. Press again to select all text in the buffer

0
↑   Shift +

Extend current selection by one character to the left

0
↑   Shift +

Extend current selection by one character to the right

0
↑   Shift + Ctrl +

Extend current selection by one word to the left

0
↑   Shift + Ctrl +

Extend current selection by one word to the right

0
↑   Shift +

Extend current selection by one line up. The selection extends to the same position in the previous line as the position of the insertion point in the current line.

0
↑   Shift +

Extend current selection by one line down. The selection extends to the same position in the next line as the position of the insertion point in the current line

0
↑   Shift + Home

Extend current selection to the beggining of command. Pressing again will include the path in the selection

0
↑   Shift + End

Extend current selection to the end of the current line

0
Ctrl + ↑   Shift + Home

Extend current selection to the beggining of the screen buffer

0
Ctrl + ↑   Shift + End

Extend current selection to the end of the screen buffer

0
Shift + Page Up

Extend current selection by one page up

0
or Shift + Page Up
After selecting text, you need to know how to manipulate it. Following commands will help you quickly copy, paste and delete your selections.
-1
Ctrl + C

Copy currently selected text

0
or Ctrl + Insert
0
Ctrl + V

Paste text from clipboard

1
or ↑   Shift + Insert
0
Backspace

Delete character left to the insertion point

0
Ctrl + Backspace

Delete the word left to the insertion point

0
Tab

Autocomplete folder and file names

0
Esc

Delete current line

0
Insert

Toggle insertion mode. In this mode, everything you type will be instered at current location. When this mode is off, everything you type will overwrite what's already there

0
Ctrl + Home

Delete text from the insertion point to the beginning of the current line

0
Ctrl + End

Delete text from the insertion point to the end of the current line

0
Ctrl + Z

Mark the end of a line. Text you type after that point on that line will be ignored

0
F3

Repeat previous command

0

Scroll backwards through previous commands you've typed

0
or F5
0

Scroll forward through previous commands you've typed

0

Retype previous command characted by character

0
or F1
0
F7

Show history of previous commands

You can use up and down keys to select any command and then hit Enter to execute command.
0
Alt + F7

Clear the command history

0
F8

Move backward in the command history to commands matching the current command. This is useful if you need to type part of a command you’ve used a few times and then scroll back in your history to find the exact command you want to repeat

-1
Ctrl + C

Copy currently selected text


Share this page on:

Program information

Program name: Command Line Command Line (System tools)

Command Line is still essential and powerful tool of Windows 10 and Microsoft says it's not going anywhere in a near future.

Last update: 31 January 2020

How easy to press shortcuts: 86%

More information >>

Shortcut count: 42

Platform detected: Windows or Linux (not macOS)

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.