Keyboard shortcuts in Bash shell [closed]

I know some useful Bash shell shortcuts, and I am wondering if there are others. The ones I know:

  • CTRL + W: delete until beginning of word
  • CTRL + U: delete until beginning of line
  • Up / Down: navigate between previous commands

What I am especially curious are the following:

  • deleting until first "/" symbol or until the point CTRL + Left would go back
  • Searching in previous posts

And any other useful shortcuts, if any.


Solution 1:

All this can be found in the bash man page (or type man bash in a shell)

Info per section:

  • Commands For Moving
  • Commands For Manipulating The History
  • Commands For Changing Text
  • Killing And Yanking

and some more

Solution 2:

The keyboard shortcuts available to you depend on whether you're using bash in emacs mode (the default) or in vi mode. You can find out which mode you're using by executing

set -o

Look in the resulting list for the line beginning "vi" and see if it is "on" or "off". Then execute

man bash

and read the section on READLINE. There you will find description of at least those commands (what you call shortcuts) available in emacs mode.