Today, we are going to have a look at the keyboard shortcuts for Linux Terminal that will make our life easier.

Let’s have a look at some basic and most useful commands

Keyboard ShortcutUse of the keyboard shortcut
Ctrl-Alt-tOpen a new Terminal
Ctrl-dClose a terminal
Ctrl-cCancels the currently running command.
Ctrl-lClears the screen just like clear command

In the above command, the one that I use the most is the Ctrl-l since it allows me to clear the screen without the need of typing the clear command again and again.

Now, Let’s have a look at some advanced commands to help our movement in terminal

Keyboard ShortcutUse of the keyboard shortcut
Ctrl-aMove the cursor to the beginning of the line
Ctrl-eMove the cursor to the end of the line
Ctrl-fMove the cursor forward by one character
Ctrl-bMove the cursor backward by one character
Alt-fMove the cursor forward by one word
Alt-bMove the cursor backward by one word

We can use home and end key to move at the beginning and end of the line as well.

The ability to move at the beginning or end of a word using Alt-f Alt-b is what I find most useful since we don’t have to move back character by character.

Now let’s have a look at some shortcuts that can help us in modifying text

Keyboard ShortcutUse of the keyboard shortcut
Ctrl-dDelete the character at the cursor location
Ctrl-tExchange the character at the current location with the character at preceding it
Ctrl-uErases the complete line
Alt-tExchange the word at the current location with the word at preceding it
Alt-lMove the cursor backward by one character
Alt-uConvert the characters of a word to lowercase from the current cursor location
Alt-bConvert the characters of a word to uppercase from the current cursor location

Alt-t is something that you don’t think you need until you start using it.