Linux Keyboard Operation tips
Cursor Movement:
Ctrl-a Move cursor to the beginning of the line.
CTRL-E Move cursor to the end of the line.
Ctrl-f Move cursor forward one character; Same as the right ARROW key.
Ctrl-b Move cursor backward one character; Same as the left ARROW key.
Alt-f Move cursor forward one word.
Alt-b Move cursor Backward one word.
Ctrl-l Clear the screen and move the cursor to the top left corner. The
Clear command does the same thing.
To modify the command line text:
Ctrl-d Delete the character at the cursor location
Ctrl-t Transpose (Exchange) the character at the cursor location with the
One preceding it.
Alt-t transpose the word at the cursor location with the one preceding it.
Alt-l Convert the characters from the cursor location to the end of the
Word to lowercase.
Alt-u Convert the characters from the cursor location to the end of the
Word to uppercase.
Cut and copy on the command line:
Ctrl-k Kill text from the cursor location to the end of line.
Ctrl-u Kill text from the cursor location to the beginning of the line.
alt-d Kill text from the cursor location to the end of the current word.
Alt-backspace
Kill text from the cursor location to the beginning of the
Word. If the cursor is at the beginning of a word, kill the previous
Word.
Ctrl-y Yank (copy) text from the kill-ring and insert it in the cursor location.
Command line history:
!! Repeats the last command, which is equivalent to the UP ARROW key of the secondary keyboard;
!number execution of the command line of article number in history;
!string executes the command line starting with string in the history;
!? String executes the command line in the previous history that contains string;
The Linux command line learning Note III