Just 5 bash shortcuts

Saw a good blog post on bash short cuts. I won't remember all of them for sure. So, going to get used to just 5 of these.

Fire up a bash/zsh whatever your favorite shell is and try these.

Ctrl + k => Delete from cursor to end of line

Ctrl + u => Delete from cursor to beginning of line

Ctrl + b => Move the cursor back one character

Ctrl + f => Move the cursor forward one character

Ctrl + t => swap the character under the cursor and the previous one

 

I just did the above a bunch of times. Pretty sure it has gone into my long term memory now :)

 

Have a good weekend,
Mahesh