Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts

Tuesday, July 10, 2007

moving around in bash

when you are in bash , do as emacs does.

The default orientation of bash command line is emacs. And though I am a big vim fan, I have gotten used to emacs mode for command line. And as they say, old habits die hard!

Here are some shortcuts to help you move around on the command line .


  • ctrl + e : takes you to the end of a command

  • ctrl + a : takes you to the beginning of a command

  • esc + f : takes you one word forward

  • esc + b : takes you one word backward

  • esc + d : deletes a word and puts it in a buffer

  • crtl + k : deletes the line from current word and puts it in a buffer

  • ctrl + y : paste contents of buffer