Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - linux callback function linux callback
linux callback function linux callback

Linux rollback shortcut key?

1. tab//Complete key for commands or paths, etc., the most commonly used shortcut key in Linux

2. ctrl+a//The cursor quickly returns to the beginning of the line< /p>

3. ctrl+e//The cursor quickly returns to the end of the line

4. ctrl+f//The cursor moves one character to the right

5. ctrl+ b//Move the cursor one character to the left

6. ctrl+insert//Copy the command line content (cannot be used on mac system)

7. Shift+insert//Paste the command line Content (cannot be used on mac system)

8. ctrl+k//Cut (delete) all characters from the cursor to the end of the line

9. ctrl+u//Cut (Delete) all characters from the cursor to the beginning of the line

10. ctrl+w//Cut (delete) the character before the cursor

11. ctrl+y//Paste Characters deleted by ctrl+k, ctrl+u, ctrl+w

12. ctrl+c//Interrupt the task being executed by the terminal and open a new line

13. ctrl +h//Delete the character before the cursor (equivalent to the backspace key)

14. ctrl+d//Exit the current shell command line. If it is a switched user, execute this command to roll back. Go to the original user

15. ctrl+r//Search historical command records used on the command line

16. ctrl+g//Search historical command mode from ctrl+r Exit

17. ctrl+l//Clear all the contents of the screen and open a new line

18. ctrl+s//Lock the terminal so that no one can enter

19. ctrl+q//Unlock the lock status of ctrl+s

20. ctrl+z//Pause tasks running in the terminal. Use the "fg" command to pause Restore

21. !!//Execute the previous command

22. !pw//This is an example of executing a command starting with pw. The pw here can be replaced with Any characters that have been executed

23. !pw:p//This is an example, which only prints the command starting with pw, but does not execute it. The last "p" is the command fixed character< /p>

24. !num//Execute the num command in the historical command list. num refers to any number (provided that it must exist in the historical command)

25. !$// Refers to the last parameter of the previous command. This command is often used in shell scripts

26. esc+.//Note that "." means to get the last parameter of the previous command (with space as the separator) Part

27. esc+b//Move to the beginning of the current word

28. esc+f//Move to the end of the current word

How about Linux Go back to the last directory?

The cd command search is used to switch the working path, the format is: "cd". The working directory refers to our current "position" in the system, and this involves knowledge of the system's storage structure. Therefore, you only need to briefly take a look at the following operation experiments. Don't blame yourself if you cannot fully grasp it. , this is due to the huge knowledge system of Linux system linuxprobe.com/chapter-02.html#25. Every beginner will go through such a period.

This command should be one of the most commonly used Linux commands. You can use the cd command to easily switch between different working directories. In addition to the common ways of switching directories, we can also use "cd- " command to return to the last directory you were in, use the "cd~" command to switch to the current user's home directory, and use "cd~username" to switch to other users' home directories