Some shortcut keys for the bash command line:
Ctrl +a: Jump to the beginning of the command
Ctrl+e: Jump to the end of the command line
Ctrl+d: Delete key
Ctrl+u: Delete cursor to the beginning of command
CTRL +K: Delete cursor to end of command line
Ctrl+l: Clear Screen
Historical History Command:
-C: Clear all inside commands
-d:history-d 10 Deletes the 10th command in the history command. history-d 10 20 Delete a total of 20 commands for the tenth command
-W: Save the command to the history file
!n: Execute command History total nth command
!-n: Executes the last nth command in the history command
!! : Execute the command you just executed
!string: The last command in the execution history that starts with a string
!$: Referencing the last parameter of the previous command
Alias command
Alias can implement a shorter name to define shell commands.
Basic usage of alias: alias aliases = ' Command-options '
EXAMPLE:WL equivalent to Wc-l
Definition: Alias wl= ' Wc-l '
If you use this command all the time, you can place it in a. bashrc file, in the source ~/.BASHRC.
Bash command shortcut, Linux common to the command line