The first character corresponds to the following:c --> ctrl a --> alt
- c + a -> the cursor to the beginning of the line
- c + e -> Position the cursor on
- c + b -> left one character
- c + f -> right one character
- a + b -> one word left
- a + f -> right one word
- c +] x -> x Right Move Character
- c + a +] x -> x Left Move Character
- c + t -> exchange two characters before the cursor
- c + u -> Delete to the beginning
- c + k -> Delete to end of line
- c + w -> Delete one word to the left
- c + h -> delete a character to the left
- c + d -> the right to delete a character (with caution, but also logout shortcut)
- c + _ -> undo
- a + -.> using the last parameter on a command
- c + p -> display on a current command history command
- c + n -> display a history command current command
- c + r -> Search History
- c + g -> Exit search
Reference:
How to move the cursor to a given position when the shell using
Linux command line cursor shortcuts used
Linux and Unix terminal command line cursor