bash: Commands For History

1 
1 8.4.2 Commands For Manipulating The History
1 -------------------------------------------
1 
1 'accept-line (Newline or Return)'
1      Accept the line regardless of where the cursor is.  If this line is
1      non-empty, add it to the history list according to the setting of
1      the 'HISTCONTROL' and 'HISTIGNORE' variables.  If this line is a
1      modified history line, then restore the history line to its
1      original state.
1 
1 'previous-history (C-p)'
1      Move 'back' through the history list, fetching the previous
1      command.
1 
1 'next-history (C-n)'
1      Move 'forward' through the history list, fetching the next command.
1 
1 'beginning-of-history (M-<)'
1      Move to the first line in the history.
1 
1 'end-of-history (M->)'
1      Move to the end of the input history, i.e., the line currently
1      being entered.
1 
1 'reverse-search-history (C-r)'
1      Search backward starting at the current line and moving 'up'
1      through the history as necessary.  This is an incremental search.
1 
1 'forward-search-history (C-s)'
1      Search forward starting at the current line and moving 'down'
1      through the history as necessary.  This is an incremental search.
1 
1 'non-incremental-reverse-search-history (M-p)'
1      Search backward starting at the current line and moving 'up'
1      through the history as necessary using a non-incremental search for
1      a string supplied by the user.  The search string may match
1      anywhere in a history line.
1 
1 'non-incremental-forward-search-history (M-n)'
1      Search forward starting at the current line and moving 'down'
1      through the history as necessary using a non-incremental search for
1      a string supplied by the user.  The search string may match
1      anywhere in a history line.
1 
1 'history-search-forward ()'
1      Search forward through the history for the string of characters
1      between the start of the current line and the point.  The search
1      string must match at the beginning of a history line.  This is a
1      non-incremental search.  By default, this command is unbound.
1 
1 'history-search-backward ()'
1      Search backward through the history for the string of characters
1      between the start of the current line and the point.  The search
1      string must match at the beginning of a history line.  This is a
1      non-incremental search.  By default, this command is unbound.
1 
1 'history-substr-search-forward ()'
1      Search forward through the history for the string of characters
1      between the start of the current line and the point.  The search
1      string may match anywhere in a history line.  This is a
1      non-incremental search.  By default, this command is unbound.
1 
1 'history-substr-search-backward ()'
1      Search backward through the history for the string of characters
1      between the start of the current line and the point.  The search
1      string may match anywhere in a history line.  This is a
1      non-incremental search.  By default, this command is unbound.
1 
1 'yank-nth-arg (M-C-y)'
1      Insert the first argument to the previous command (usually the
1      second word on the previous line) at point.  With an argument N,
1      insert the Nth word from the previous command (the words in the
1      previous command begin with word 0).  A negative argument inserts
1      the Nth word from the end of the previous command.  Once the
1      argument N is computed, the argument is extracted as if the '!N'
1      history expansion had been specified.
1 
1 'yank-last-arg (M-. or M-_)'
1      Insert last argument to the previous command (the last word of the
1      previous history entry).  With a numeric argument, behave exactly
1      like 'yank-nth-arg'.  Successive calls to 'yank-last-arg' move back
1      through the history list, inserting the last word (or the word
1      specified by the argument to the first call) of each line in turn.
1      Any numeric argument supplied to these successive calls determines
1      the direction to move through the history.  A negative argument
1      switches the direction through the history (back or forward).  The
1      history expansion facilities are used to extract the last argument,
1      as if the '!$' history expansion had been specified.
1