Shortcut Keys available when the terminal inputs Shell commands
Edit command:
Ctrl-a move the cursor to the beginning of the line Ctrl-e move the cursor to the end of the line Ctrl-l clear screen (function is the same as the clear command) ctrl-d Delete the character Ctrl-t where the cursor is located and the character before it is exchanged Ctrl-k cut the character Ctrl-u from the position of the cursor to the end of the line cut the character from the cursor position to the beginning of the line Ctrl-y paste the characters deleted from the last two commands to the current cursor position
SEARCH command:
Ctrl-r search history command Ctrl-j after searching, press Ctrl-j to copy the current command line
Command history expansion:
!! Repeat the last command, and press the direction key first and then press Enter! Number: repeat the historical command of the specified number! String repeatedly executes the History commands starting with string !? String: Repeat the History commands that contain strings.