=============================== Command Line keyboard shortcuts =============================== First published at 8/26/2017 on https://defkey.com/windows-command-line-cmd-shortcuts Command Line is still essential and powerful tool of Windows 10 and Microsoft says it's not going anywhere in a near future. Command Line has 42 shortcuts and we have listed all of them below. Navigation ---------- 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 + Left arrow Move the selection point to the beginning of the previous work on the current line Ctrl + Right arrow Move the selection point to the beginning of the next work on the current line Ctrl + Up arrow Scroll the page up without moving insertion point Ctrl + Down arrow 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 Text selection -------------- 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 + Left arrow Extend current selection by one character to the left Shift + Right arrow Extend current selection by one character to the right Shift + Ctrl + Up arrow Extend current selection by one word to the left Shift + Ctrl + Down arrow Extend current selection by one word to the right Shift + Up arrow 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 + Down arrow 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 Shift + Page Up Extend current selection by one page up Text manipulation ----------------- 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 Ctrl + Insert Copy currently selected text Ctrl + V Paste text from clipboard Shift + Insert Paste text from clipboard 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 Command history --------------- F3 Repeat previous command Up arrow Scroll backwards through previous commands you've typed F5 Scroll backwards through previous commands you've typed Down arrow Scroll forward through previous commands you've typed Right arrow Retype previous command characted by character F1 Retype previous command characted by character 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 Last modified on (UTC): Friday, January 31, 2020 Defkey © All rights reserved.