Bash shortcuts

Created by Alin Brindusescu on 2011-01-16 14:50:49

Some bash shortcuts I found useful in bash shell. Note: not all of them are working when you use them over a ssh connection.
CTRL + A - move the prompt to the begining of the current line
CTRL + E - move the prompt to the end of the current line
ALT + F - move the prompt one word to the right
ALT + B - move the prompt one word to the left
CTRL + L - clear the the terminal (equivalent with clear comanda)
CTRL + R - search history
CTRL + U - delete the content of the curent line until the prompt
CTRL + K - delete the content of the current line from the prompt till the end of line
CTRL + W - delete the word found in front of the prompt
ALT + D - delete the word after the prompt
CTRL + T - swap the 2 letters before the prompt
ESC + T or ALT + T - swap the 2 words before the prompt
CTRL + K - cut the text before the prompt
CTRL + Y - paste the text cuted with CTRL + K


Comments: work in progress!

Search

Ads