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**
Written by Fuad Saud
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Related Tags
#shell
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#