Command Prompt shortcuts can make it quick to operate Windows Command Prompt. For example, you can use shortcuts for Command Prompt to open and close Command Prompt, move around in it, select and manipulate text, and more. In this MiniTool post, we will show you these useful Command Prompt shortcuts.
Windows Command Prompt is a powerful tool for you to execute all kinds of commands to achieve some aims. In nature, it relies on some keyboard use especially some Command Prompt shortcuts. Some of these shortcuts for Command Prompt have been around in the early time, while, some are new with Windows 10 and you need to enable them before using them.
In this post, we will show you some useful Command Prompt shortcuts that can streamline your life.
Command Prompt shortcuts
- Open and Close the Windows Command Prompt
- Move Around in Windows Command Prompt
- Select Text in Command Prompt
- Manipulate the Selected Text in Command Prompt
- Work with the Command History
Open and Close the Windows Command Prompt
You can use multiple methods to open and close the Windows Command Prompt. Here, we will show you how to use the Command Prompt shortcut to do the work.
- Windows+R and then type cmd & press Enter: run the Command Prompt in the normal mode.
- Win+X and press C: run the Command Prompt in normal mode. (A new Command Prompt shortcut in Windows 10)
- Win+X and press A: run the Command Prompt as administrator. (A new Command Prompt shortcut in Windows 10)
- Alt+F4: close the Command Prompt window.
- Alt+Enter: switch between full-screen and windowed mode.
We suggest running the Command Prompt as administrator because most useful commands require this privilege.
Move Around in Windows Command Prompt
Moving around in Command Prompt using shortcuts can save a lot of time for you. Here are some Command Prompt shortcuts for you:
- Home/End: move the insertion point to the beginning or the end of the current line.
- Ctrl+Left/Right Arrow: move the insertion point to the beginning of the previous or next word of the current line.
- Ctrl+Up/Down Arrow: scroll the page up or down without moving the insertion point.
- Ctrl+M: enter or exit Mark Mode.
Select Text in Command Prompt
The Command Prompt shortcuts even allow you to select a character, a word, a line, or even a whole screen once.
- Ctrl+A: selects all text in the current line. You can press Ctrl+A again to select all text in the CMD buffer.
- Shift+Left Arrow/Right Arrow: extend or shrink the current selection by one character to the left or right.
- Shift+Ctrl+Left Arrow/Right Arrow: extend or shrink the current selection by one word to the left or right.
- Shift+Arrow Up/Arrow Down: extend or shrink the current selection by one line up or down.
- Shift+Home: extend the current selection to the beginning of the command. You can press Shift+Home again to select the path (e.g., C:\Users\Administrator>) in the selection.
- Shift+End: extend the current selection to the end of the current line.
- Ctrl+Shift+Home/End: extend the current selection to the beginning or end of the screen buffer.
- Shift+Page Up/Page Down: extend the current selection by one page up or down.
Manipulate the Selected Text in Command Prompt
You must want to manipulate the selected text after you select it. Here are also some Command Prompt shortcuts that can be used to deal with the selected text.
- Ctrl+C/Ctrl+Insert: copy the selected text.
- F2 and a letter: copy the text to the right side of the insertion point up to the letter you have typed.
- Ctrl+V/Shift+Insert: paste the text from the clipboard.
- Backspace: remove the character to the left of the insertion point.
- Ctrl+Backspace: remove the word to the left of the insertion point.
- Tab: autocomplete a folder name.
- Escape: delete the current line.
- Insert: toggle the insertion mode.
- Ctrl+Home/End: delete text from the insertion point to the beginning or end of the current line.
- Ctrl+Z: mark the end of the line.
Work with the Command History
Windows Command Prompt can keep a history of all the commands that you have used since the current session. Here are some useful Command Prompt shortcuts to operate the command history.
- F3: re-use the previous command.
- Up/Down Arrow: scroll backward or forward through the previous command you have used in the current session. You can also press F5 to scroll backward through the command history.
- Right Arrow/F1: re-create the previous command character by character.
- F7: show the previous command history.
- Alt+F7: clear the command history.
- F8: move backward in the command history to commands matching the current command.
- Ctrl+C: abort the current line you’re typing or a command that is currently executing. Here, you should know that it only aborts the line you are typing when there is no text selected. However, if you have selected a text, this command will copy the text instead.
Bottom Line
Now, you know the shortcuts for Command Prompt. Why not use them to make your work life easier. Should you have any related issues, you can let us know in the comment.