Shortcuts to edit on the command line
Ctrl + A # move cursor at the beginning of the line
Ctrl + E # move cursor at the end of the line
Ctrl + F # move cursor forward one character
Ctrl + B # move cursor backward one character
Alt + F # move cursor forward one word
Alt + B # move cursor backward one word
Alt + D # delete text from cursor to the end of the word
Ctrl + D # delete character at the cursor location
Ctrl + K # delete text from cursor to the end of the line
Ctrl + U # delete text from cursor to the beginning of the line
Ctrl + L # clear the screen and move the cursor a to the top-left corner. The clear command does the same thing
Ctrl + Y # yank text from the kill-ring and insert it at the cursor location
Alt + D # kill text from the cursor location to the end of the current word
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 upper
Ctrl + J #copy the line from the history (ctrl-R) list to the current command line
Alt + backspace # to delete text from the cursor to the beginning of the current word, or previous word
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki offline