Edit command:
- Ctrl–a move cursor to beginning of line
- Ctrl–e move cursor to end of line
- Ctrl–l Clear screen (function with clear command)
- Ctrl–d Delete the character at the cursor location
- Ctrl–t the character in the position of the cursor and the character before it is exchanged
- Ctrl–k cut the character from the cursor position to the end of the line
- Ctrl–u cut the character from the cursor position to the beginning of the line
- Ctrl–y paste the characters deleted by the last two commands to the current cursor location
Search command:
- Ctrl–r Search History Command
- After the ctrl–j has been searched, press ctrl–j to copy the command to the current command line
Command history unfold:
- !! Repeat the last command, and press the arrow key first and then enter the effect.
- !number repeating the history command specifying number
- !string repeating a history command beginning with a string
- !? String repeatedly executes a history command with string
Shortcut keys available when terminal enters a Shell command