Even if you use Windows Command Prompt a lot, you may be surprised at the number of useful keyboard shortcuts it supports. You can use them to streamline everything from choosing and manipulating text to repeated commands that you have already written. And we have the full list for you.
The command prompt is a powerful tool in Windows, giving you access to all kinds of useful commands that you can't get any other way. By its very nature, Windows Command Prompt is dependent on a lot of keyboard usage ̵1; and thus there are quick shortcuts. Most of these shortcuts have been around since the early days of the command prompt. Some are new to Windows 10 (especially some of those who use the Ctrl key) and you need to activate them before you can use them. Once you've done that, you're ready to unleash your full-finger keyboard hernia.
Shortcuts for starting and closing the command interpretation
In fact, Windows has a number of ways to open the command interpretation. The following list shows some of the ways you can open and close the command interpretation using just the keyboard:
- Windows (or Windows + R) and then type "cmd" : Run the command prompt in normal mode.
- Win + X and then press C : Run the command prompt in normal mode. (New in Windows 10)
- Win + X, then press A : Run the command prompt with administrative privileges. (New in Windows 10)
- Alt + F4 (or type "exit" at the prompt) : Close the command prompt.
- Alt + Enter : Toggle between full screen and window mode.
And when one of the ways to open the command interpretation works, we recommend that you usually open it with administrative permissions. Most interesting commands you need use it anyway.
Note: : If you see PowerShell instead of Command Prompt in the Windows + X (Power Users) menu, it is a switch that applied to the creator update for Windows 10. It is very easy to switch back to displaying the command interpretation on the Power Users menu if you want, or you can give PowerShell a try. You can do pretty much anything in PowerShell that you can do in Command Prompt, plus many other useful things.
Move around shortcuts
You can always click with the mouse to place the cursor anywhere you want in the Command Prompt. But if you like to keep your hands on the keys, we have taken you with these shortcuts to move around:
- Home / End : Move the insertion point to the beginning or end of the current row
- Ctrl + Left / Right Arrow : Move the insertion point to the beginning of the previous or next word (s) on the current row.
- Ctrl + Up / Down Arrow : Scroll the page up or down without moving the insertion point.
- Ctrl + M : Enter or exit the highlight mode. In selection mode, you can use all four arrow keys to move the cursor around the window. Note that you can always use the Left and Right arrow keys to move your insertion point to the left or right of the current row, regardless of whether the Mark mode is on or off.
Once you get used to moving with the keyboard, you might find it faster than switching to the mouse and back again.
Shortcuts to select text
Since text is the currency of the Command Prompt, it should not surprise you to learn that there are all types of keyboard shortcuts available to select text on the screen . With different shortcuts, you can select text one character, one word, one row or even one full screen at a time.
- Ctrl + A : Selects all text on the current row. Press Ctrl + A again to select all text in the CMD buffer.
- Shift + Left Arrow / Right Arrow : Include the current selection with one character left or right.
- Shift + Ctrl + Left Arrow / Right Arrow : Include the current selection with one word left or right.
- Shift + Up Arrow / Down Arrow : Increase the current selection by one line up or down. The selection extends to the same position in the previous or next row as the position of the insertion point in the current row.
- Shift + Hem : Extend the current selection to the beginning of a command. Press Shift + Home again to include the path (eg C: Windows system32) in the selection.
- Shift + End : Extend the current selection to the end of the current row.
- Ctrl + Shift + Home / End : Extensive power selection to the beginning or end of the screen buffer (respectively).
- Shift + Page Up / Page Down : Expand the current selection with one side up or down.  It may seem like a lot to remember when you can only choose text with the mouse and of course, the way that works best for you is the right way to do things. But we guess that if you give yourself some time to get used to the keyboard shortcuts, you may find it actually easier than going to the mouse every time.
Text manipulation shortcuts
After selecting text, it makes sense that you have to be able to manipulate what you have chosen. The following commands give you quick ways to copy, paste, and delete selections.
- Ctrl + C (or Ctrl + Insert) : Copy the current selected text.
- F2 and then a letter : Copy Text to the right of the insertion point to the letter you wrote.
- Ctrl + V (or Shift + Insert) : Paste text from the clipboard.
- Backspace : Delete the character to
- : Move
- : Move : Delete : Fill : Delete
- : Delete the word to the left of the insertion point. current text line.
- Insert : Change the insert mode. When the insertion mode is on, everything you enter is set to your current location.
- Ctrl + Home / End : Delete text from the insertion point to the beginning or end of the current row.
- Ctrl + Z : Selects the end of a line. The text you type after that point on that line will be ignored.
In brief, the shortcuts for copying and pasting are the most welcome extensions in Windows 10. However, hopefully you can use one of the others.
Shortcuts to work with the command line
Finally, the command interpretation keeps a history of all the commands you have written since you started your current session.
- : Repeat the previous command.
- Up / Down Arrow : Scroll back and forth through the previous commands you wrote in the current session. You can also press F5 instead of the Up arrow to scroll back through the command tag.
- Right Arrow (or F1) : Recreate the previous command type by character.
- F7 : Display a history of previous commands. You can use the up / down arrow buttons to select a command and then press Enter to execute the command.
- Alt + F7 : Clear the command tag.
- F8 : Move backward in command history to commands that match the current command. This is useful if you want to enter a part of a command that you have used several times and then browse back in your story to find the exact command you want to repeat.
- Ctrl + C : Cancel the current line you & # 39; type or a command currently executing.
And it's about it. If you use Command Prompt a lot, you will find many of these keyboard shortcuts that are very useful for saving some time and possibly incorrect commands. Even if you only use the command prompt only occasionally, it is worth learning some simple shortcuts to get around.