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
2 comments:
if there are more pages in a 'man' topic but they don't come up how do i scroll more pages for the options
@Anonymous: If you are looking to go around in bash :
CTRL+F : One page forward
CTRL+B : One page back
CTRL+D : Half page forward (or down)
CTRL+U : Half page back (or up)
Post a Comment