bash: Miscellaneous Commands
1
1 8.4.8 Some Miscellaneous Commands
1 ---------------------------------
1
1 're-read-init-file (C-x C-r)'
1 Read in the contents of the INPUTRC file, and incorporate any
1 bindings or variable assignments found there.
1
1 'abort (C-g)'
1 Abort the current editing command and ring the terminal's bell
1 (subject to the setting of 'bell-style').
1
1 'do-uppercase-version (M-a, M-b, M-X, ...)'
1 If the metafied character X is lowercase, run the command that is
1 bound to the corresponding uppercase character.
1
1 'prefix-meta (<ESC>)'
1 Metafy the next character typed. This is for keyboards without a
1 meta key. Typing '<ESC> f' is equivalent to typing 'M-f'.
1
1 'undo (C-_ or C-x C-u)'
1 Incremental undo, separately remembered for each line.
1
1 'revert-line (M-r)'
1 Undo all changes made to this line. This is like executing the
1 'undo' command enough times to get back to the beginning.
1
1 'tilde-expand (M-&)'
1 Perform tilde expansion on the current word.
1
1 'set-mark (C-@)'
1 Set the mark to the point. If a numeric argument is supplied, the
1 mark is set to that position.
1
1 'exchange-point-and-mark (C-x C-x)'
1 Swap the point with the mark. The current cursor position is set
1 to the saved position, and the old cursor position is saved as the
1 mark.
1
1 'character-search (C-])'
1 A character is read and point is moved to the next occurrence of
1 that character. A negative count searches for previous
1 occurrences.
1
1 'character-search-backward (M-C-])'
1 A character is read and point is moved to the previous occurrence
1 of that character. A negative count searches for subsequent
1 occurrences.
1
1 'skip-csi-sequence ()'
1 Read enough characters to consume a multi-key sequence such as
1 those defined for keys like Home and End. Such sequences begin
1 with a Control Sequence Indicator (CSI), usually ESC-[. If this
1 sequence is bound to "\e[", keys producing such sequences will have
1 no effect unless explicitly bound to a readline command, instead of
1 inserting stray characters into the editing buffer. This is
1 unbound by default, but usually bound to ESC-[.
1
1 'insert-comment (M-#)'
1 Without a numeric argument, the value of the 'comment-begin'
1 variable is inserted at the beginning of the current line. If a
1 numeric argument is supplied, this command acts as a toggle: if the
1 characters at the beginning of the line do not match the value of
1 'comment-begin', the value is inserted, otherwise the characters in
1 'comment-begin' are deleted from the beginning of the line. In
1 either case, the line is accepted as if a newline had been typed.
1 The default value of 'comment-begin' causes this command to make
1 the current line a shell comment. If a numeric argument causes the
1 comment character to be removed, the line will be executed by the
1 shell.
1
1 'dump-functions ()'
1 Print all of the functions and their key bindings to the Readline
1 output stream. If a numeric argument is supplied, the output is
1 formatted in such a way that it can be made part of an INPUTRC
1 file. This command is unbound by default.
1
1 'dump-variables ()'
1 Print all of the settable variables and their values to the
1 Readline output stream. If a numeric argument is supplied, the
1 output is formatted in such a way that it can be made part of an
1 INPUTRC file. This command is unbound by default.
1
1 'dump-macros ()'
1 Print all of the Readline key sequences bound to macros and the
1 strings they output. If a numeric argument is supplied, the output
1 is formatted in such a way that it can be made part of an INPUTRC
1 file. This command is unbound by default.
1
1 'glob-complete-word (M-g)'
1 The word before point is treated as a pattern for pathname
1 expansion, with an asterisk implicitly appended. This pattern is
1 used to generate a list of matching file names for possible
1 completions.
1
1 'glob-expand-word (C-x *)'
1 The word before point is treated as a pattern for pathname
1 expansion, and the list of matching file names is inserted,
1 replacing the word. If a numeric argument is supplied, a '*' is
1 appended before pathname expansion.
1
1 'glob-list-expansions (C-x g)'
1 The list of expansions that would have been generated by
1 'glob-expand-word' is displayed, and the line is redrawn. If a
1 numeric argument is supplied, a '*' is appended before pathname
1 expansion.
1
1 'display-shell-version (C-x C-v)'
1 Display version information about the current instance of Bash.
1
1 'shell-expand-line (M-C-e)'
1 Expand the line as the shell does. This performs alias and history
11 expansion as well as all of the shell word expansions (⇒Shell
Expansions).
1
1 'history-expand-line (M-^)'
1 Perform history expansion on the current line.
1
1 'magic-space ()'
1 Perform history expansion on the current line and insert a space
1 (⇒History Interaction).
1
1 'alias-expand-line ()'
1 Perform alias expansion on the current line (⇒Aliases).
1
1 'history-and-alias-expand-line ()'
1 Perform history and alias expansion on the current line.
1
1 'insert-last-argument (M-. or M-_)'
1 A synonym for 'yank-last-arg'.
1
1 'operate-and-get-next (C-o)'
1 Accept the current line for execution and fetch the next line
1 relative to the current line from the history for editing. Any
1 argument is ignored.
1
1 'edit-and-execute-command (C-xC-e)'
1 Invoke an editor on the current command line, and execute the
1 result as shell commands. Bash attempts to invoke '$VISUAL',
1 '$EDITOR', and 'emacs' as the editor, in that order.
1