Command Line keyboard shortcuts

Command Line

defkey.com -
23 months 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.
Home

Move the selection point to the beginning of the current line

End

Move the selection point to the end of the current line

Ctrl +

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

Ctrl +

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

Ctrl +

Scroll the page up without moving insertion point

Ctrl +

Scroll the page down without moving insertion point

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.
Ctrl + A

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

↑   Shift +

Extend current selection by one character to the left

↑   Shift +

Extend current selection by one character to the right

↑   Shift + Ctrl +

Extend current selection by one word to the left

↑   Shift + Ctrl +

Extend current selection by one word to the right

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

↑   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

↑   Shift + Home

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

↑   Shift + End

Extend current selection to the end of the current line

Ctrl + ↑   Shift + Home

Extend current selection to the beggining of the screen buffer

Ctrl + ↑   Shift + End

Extend current selection to the end of the screen buffer

Shift + Page Up

Extend current selection by one page up

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.
Ctrl + C

Copy currently selected text

or Ctrl + Insert
Ctrl + V

Paste text from clipboard

or ↑   Shift + Insert
⬅ Backspace

Delete character left to the insertion point

Ctrl + ⬅ Backspace

Delete the word left to the insertion point

⭾ Tab

Autocomplete folder and file names

Esc

Delete current line

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

Ctrl + Home

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

Ctrl + End

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

Ctrl + Z

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

F3

Repeat previous command

Scroll backwards through previous commands you've typed

or F5

Scroll forward through previous commands you've typed

Retype previous command characted by character

or F1
F7

Show history of previous commands

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

Clear the command history

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

Ctrl + C

Copy currently selected text


Share this page on:

Program information

Program name: 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.

Shortcut count: 42

Similar programs


  1. Grand Theft Auto VGrand Theft Auto V
    43149   
  2. Keyboard symbolsKeyboard symbols
    42132    1
  3. Apex Legends (PC)Apex Legends (PC)
    34035   
  4. PlayerUnknown's BattlegPlayerUnknown's Battleg
    31092    2
  5. Fortnite (PC)Fortnite (PC)
    30644    2
  6. The Sims 4The Sims 4
    30566    3
More keyboard shortcuts...

Advertisement

Subscribe to our mailing list!

Useful technology tips and keyboard shortcuts will appear in your inbox.

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

What is your favorite Command Line hotkey? Do you have any useful tips for program? Let other users know below.