keyboard shortcuts for ubuntu

You can use keyboard shortcuts and other command line tricks to make entering commands easier and faster. You might already know about the ‘tab’ key which completes partial commands and even file and directory names.

Here are some other keyboard shortcuts you can use within terminal:
Ctrl-aMove to the start of the line.
Ctrl-eMove to the end of the line.
Alt-] xMoves the cursor forward to the next occurrence of x.
Alt-Ctrl-] xMoves the cursor backwards to the previous occurrence of x.
Ctrl-uDelete from the cursor to the beginning of the line.
Ctrl-kDelete from the cursor to the end of the line.
Ctrl-wDelete from the cursor to the start of the word.
Ctrl-yPastes text from the clipboard.
Ctrl-lClear the screen leaving the current line at the top of the screen.
Ctrl-x Ctrl-uUndo the last changes. Ctrl-_
Alt-rUndo all changes to the line.
Alt-Ctrl-eExpand command line.
Ctrl-rIncremental reverse search of history.
Alt-pNon-incremental reverse search of history.
!!Execute last command in history
!abcExecute last command in history beginning with abc
!nExecute nth command in history
^abc^xyzReplace first occurrence of abc with xyz in last command and execute it