Linux self-study journey-basic commands (commonly used shortcut keys)

Linux self-study journey-basic commands (commonly used shortcut keys under Linux)


Preface

1. In the previous section, we talked about the basic use and usage of the alias command alias. If you haven't read it yet, click the link below to enter: alias

2. In this section, we will talk about some basic shortcut keys under Linux


Tip: The following is the content of this article

1. Usefulness of commonly used shortcut keys

Frequent use of commonly used shortcut keys can improve the efficiency of our command line input.

2. Commonly used shortcut keys

hot key effect
Tab键 Command completion
Ctrl+A You can move the cursor to the head of the command line
Ctrl+E You can move the cursor to the end of the command line
Ctrl+U Delete or cut the command before the cursor
Ctrl+Y Paste the content cut by ctrl+U

Three, shortcut keys overview

1. ctrl+A:
For example, if you enter the ls command on the console, directly press ctrl+A on the keyboard (A is not a capital a, or a normal lowercase a, and other letters are also lowercase), the cursor is Will return to the front of l in ls.

2.ctrl+E:

Contrary to the above, it is still ls. For example, your cursor is now in front of l of ls, and ctrl+E can quickly go back to s of ls.

3. ctrl+U:
still ls, for example, your cursor is now behind the s of ls, ctrl+U can quickly delete or cut your ls, and ls will disappear.

4. ctrl+Y:
This is better to understand, delete ls, ctrl+Y can quickly paste ls back.


to sum up

In this section we learned

{

ctrl+A: the cursor is positioned at the
beginning of the command line ctrl+E: the cursor is positioned at the end of the command line
ctrl+U: delete or cut the command before the cursor
ctrl+Y: paste the command cut by ctrl+U

}

This is Jiehua, see you next time!

Guess you like

Origin blog.csdn.net/qq313088385/article/details/114110706