CMD command terminal shortcut key learning

Many environments require installation and specifying environment variables before they can be accessed through the terminal.

For example, some databases, some environments, such as: nodejs Oracle, mysql

Hold down shift+right mouse button in a folder to quickly run the terminal in the current directory! Eliminate the hassle of cd directories

shortcut key

When you learn and use the command terminal (such as Windows CMD), the following is a detailed introduction to some commonly used command terminal shortcut keys:

1. Tab key: command auto-completion. When entering a command or path, press the Tab key to automatically complete the name of the command or path. If there are multiple matches, pressing the Tab key continuously displays a list of available options.

2. Up/Down Arrow Keys: Access command history. Press the up arrow key to step through previously entered commands, and press the up arrow key to step down through newer commands.

3. Ctrl+C: Interrupt the running program. Press Ctrl+C to interrupt the currently running program or command and return to the command terminal prompt.

4. Ctrl+D: End input or exit the terminal. On Unix-like systems (such as Linux or Mac OS X), press Ctrl+D to indicate the end of input, or press Ctrl+D in a blank state to exit the terminal.

5. Ctrl+L or clear: clear the screen. Press Ctrl+L to clear all output on the current terminal window and position the cursor at the top, or you can use the clear command to achieve the same effect.

6. Ctrl+U and Ctrl+K: Delete text. Press Ctrl+U to delete the text before the cursor, and press Ctrl+K to delete the text after the cursor.

7. Ctrl+A and Ctrl+E: Move the cursor. Press Ctrl+A to move the cursor to the beginning of the command line, and press Ctrl+E to move the cursor to the end of the command line.

8. Ctrl+R: Reverse search command history. After pressing Ctrl+R, you can type the historical command you are looking for character by character. Every time a keyboard character is pressed, it automatically matches the most recent command and displays it.

9.ESC: Clear the current line

These are some common command terminal shortcuts. In actual use, there may be other shortcuts and functions specific to different terminals. Familiarity with these shortcut keys can improve efficiency and convenience in the command terminal.

Guess you like

Origin blog.csdn.net/leoysq/article/details/133317097