What are the CMD operation shortcuts for the Win10 system?

  

Although there are many shortcut keys in the Windows system, there are very few shortcut keys that we usually use in the CMD command prompt. By collecting these shortcut keys, I found the 30+CMD operation shortcut keys that have been dusty for a long time. We can use shortcut keys to simplify the selection in the command prompt.

Everyone knows that the command prompt is an indispensable tool for system management in Windows. Users can use a variety of commands to implement management methods that are difficult for graphical interfaces. The Windows command prompt relies on a large number of keyboard shortcuts in terms of its nature of use. Most of the shortcuts mentioned in this article appeared in the early days of CMD release, but there are some new operations in Windows 10 (especially the use of the Ctrl key), so let's take a look.

Quick Start and Shutdown Command Prompt

There are many ways to open a command prompt in Windows. Let's summarize some common ways to open and close a keyboard only:

Windows (or Windows + R) Enter CMD Open the normal mode of the command prompt

Windows + X Press C to open the normal mode of the command prompt (Win10 added)

Windows + X Press A Open the administrator mode of the command prompt (new in Win10)

Alt+F4 or execute exit Close the command prompt

Alt+Enter Switch between full screen or window mode

Although there are many ways to open it, it is recommended that you always open it with administrator privileges when you use it to avoid permission problems during operation.

Moving the cursor

In the command prompt, you can place the cursor anywhere with a mouse click. The keyboard shortcuts are:

Home and End: Move the cursor to the beginning or end of the line

Ctrl + ← and Ctrl + →: Move the cursor to the previous or next word

Ctrl + ↑ and Ctrl + ↓: Scroll up and down content

Ctrl+M: Enter or exit Marker Mode

As with VIM in Linux, after using the custom shortcuts, I believe you must be used to working with commands. Then switch to the mouse to get a little bit.

Quickly select text

In the command prompt, we can also use the shortcut keys to select characters, words, whole line level or full screen level for the text in the command prompt: Br>

Shift + ← and Shift + →: Extend a range of characters to the left or right

Shift + ↑ and Shift + ↓: Extend the selection range up or down

Shift + Ctrl + ← and Shift + Ctrl + →: Extend the selection range of a word to the left or right

Shift + Home: Select the current character to the beginning of the line

Shift + End: Select the current character to the end of the line

Ctrl+ Shift + Home and Ctrl+ Shift + End: Select the current character to the beginning or end of the screen buffer

It seems to be more complicated. In fact, it is the different combination of Ctrl, Shift and up, down, left and right keys. It is more convenient to use it than to use the mouse.

Shortcut Text

Checking is just the first step, and the manipulation of the text is essential. Let's talk about how to quickly copy, paste and delete in the command prompt:

Ctrl + C or Ctrl + Insert: copy the currently selected text

Ctrl + V or Shift +Insert: Paste from the clipboard

Backspace: Delete the left character of the cursor

Ctrl + Backspace: Delete the word to the left of the cursor

Tab: Automatically complete the file name, folder Path or command

Escape: Delete current line

Insert: Switch to "insert mode", insert at any position (automatically overwrite existing content)

Ctrl + Home and Ctrl + End: Delete the cursor to the beginning or end of the line

Ctrl + Z: End of line mark (the content after the symbol will be automatically ignored)

Obviously, use shortcut The way to copy and paste in the command prompt is a very popular enhancement in Win10.

command history

command prompt characters will automatically record all historical operating record of this session to start the execution, you can easily call:

F3: Repeat the previous command

↑ or ↓ key: switch between the previous or next command

→ key or F1: present the last executed command character by character

F7: List current command history, select with ↑ ↓ key

Alt + F7: Clear command history

F8: Press the current input character, one by one Switching matches in previously executed commands

Ctrl + C: Forcibly aborting the current input line or executing command

The effect after using the above command has no direct effect on Windows native. Use cautiously in CMD.

Copyright © Windows knowledge All Rights Reserved