For Beginners

Useful keyboard shortcuts in Bash for beginners

terminal

Hotkeys in Bash helps you use Bash more efficiency. Most of them have slower analogs. But some of them help you easier do common things.

Ctrl + a – Return to the start of the command you’re typing

Ctrl + e – Go to the end of the command you’re typing

Ctrl + u – Cut everything before the cursor to a special clipboard

Ctrl + k – Cut everything after the cursor to a special clipboard

Ctrl + y – Paste from the special clipboard that Ctrl + u and Ctrl + k save their data to

Ctrl + t – Swap the two characters before the cursor (you can actually use this to transport a character from the left to the right, try it!)

Ctrl + w – Delete the word / argument left of the cursor

Ctrl + h – Delete the one symbol left of the cursor

Ctrl + l – Clear the screen

Now you are more efficient in Bash than you were before.