Last Updated: February 25, 2016
·
736
· fuadsaud

emacs shortcuts on terminal

If you use emacs keybindings on your terminal (most people do, even not being aware of it), and you're not used to emacs, here are some key combinations that can help you keep your sanity when editing lines on the console:

Control + a go to the begin of the line
Control + e go to the end of the line
Control + w delete to the begin of the line *
Control + k delete to the end of the line *
Control + u delete whole line *
Control + d deletes current character *
Control + f moves cursor forward
Control + b moves cursor backward
Control + t swaps current character with previous

Also puts the deleted content on the clipboard. This can be pasted with *Control + y**