You can use the bind command to learn about the key combinations and functions, or you can specify which key combinations you want to use.
Syntax
Bind [-dlv] [-f <key configuration file>] [-m <key configuration>] [-q <Function>]
Parameter description:
- -D: displays the key configuration content.
- -F <key configuration file> load the specified key configuration file.
- -L list all functions.
- -M <key configuration> specifies the key configuration.
- -Q <Function> displays the buttons of the specified function.
- -V lists the current key configurations and functions.
Instance
Display all functions of a key combination
# Bind-l // display the content of the key combination
Abort
Accept-line
Alias-expand-line
Arrow-key-prefix
Backward-byte
Backward-char
Backward-delete-char
Backward-kill-line
Backward-kill-word
Backward-word
Beginning-of-history
Beginning-of-line
...... Omitted content
Vi-goto-mark
Vi-insert-beg
Vi-insertion-mode
Vi-match
Vi-movement-mode
Vi-next-word
Vi-overstrike
Vi-overstrike-delete
Vi-prev-word
Vi-put
Vi-redo
Vi-replace
Vi-rubout
Vi-search
Vi-search-again
Vi-set-mark
Vi-subst
Vi-tilde-expand
Vi-yank-arg
Vi-yank-
Yank
Yank-last-arg
Yank-nth-arg
Yank-pop
Display the current key combination settings
# Bind-l
Abort
Accept-line
Alias-expand-line
Arrow-key-prefix
Backward-byte
Backward-char
Backward-delete-char
Backward-kill-line
Backward-kill-word
Backward-word
Beginning-of-history
Beginning-of-line
Call-last-kbd-macro
Capitalize-word
Character-search
Character-search-backward
Clear-screen
Complete
Complete-command
Complete-filename
Complete-hostname
Complete-into-braces
Complete-username
Complete-variable
Copy-backward-word
Copy-forward-word
Copy-region-as-kill
Dabbrev-expand
Delete-char
Delete-char-or-list
Delete-horizontal-space
Digit-argument
Display-shell-version
Do-lowercase-version
Downcase-word
Dump-functions
Dump-macros
Dump-variables
Dynamic-complete-history
Edit-and-execute-command
Emacs-editing-mode
End-kbd-macro
End-of-history
End-of-line
Exchange-point-and-mark
Forward-backward-delete-char
Forward-byte
Forward-char
Forward-search-history
Forward-word
Glob-complete-word
Glob-expand-word
Glob-list-expansions
History-and-alias-expand-line
History-expand-line
History-search-backward
History-search-forward
Insert-comment
Insert-completions
Insert-last-argument
Kill-line
Kill-region
Kill-whole-line
Kill-word
Magic-space
Menu-complete
Menu-complete-backward
Next-history
Non-incremental-forward-search-history
Non-incremental-forward-search-history-again
Non-incremental-reverse-search-history
Non-incremental-reverse-search-history-again
Old-menu-complete
Operate-and-get-next
Overwrite-mode
Possible-command-completions
Possible-completions
Possible-filename-completions
Possible-hostname-completions
Possible-username-completions
Possible-variable-completions
Previous-history
Quoted-insert
Redraw-current-line
Re-read-init-file
Reverse-search-history
Revert-line
Self-insert
Set-mark
Shell-backward-kill-word
Shell-backward-word
Shell-expand-line
Shell-forward-word
Shell-kill-word
Skip-csi-sequence
Start-kbd-macro
Tab-insert
Tilde-expand
Transpose-chars
Transpose-words
Tty-status
Undo
Universal-argument
Unix-filename-rubout
Unix-line-discard
Unix-word-rubout
Upcase-word
Vi-append-eol
Vi-append-mode
Vi-arg-digit
Vi-back-to-indent
Vi-bword
Vi-bWord
Vi-change-case
Vi-change-char
Vi-change-
Vi-char-search
Vi-column
Vi-complete
Vi-delete
Vi-delete-
Vi-editing-mode
Vi-end-word
Vi-eof-maybe
Vi-eword
Vi-eWord
Vi-fetch-history
Vi-first-print
Vi-fword
Vi-fWord
Vi-goto-mark
Vi-insert-beg
Vi-insertion-mode
Vi-match
Vi-movement-mode
Vi-next-word
Vi-overstrike
Vi-overstrike-delete
Vi-prev-word
Vi-put
Vi-redo
Vi-replace
Vi-rubout
Vi-search
Vi-search-again
Vi-set-mark
Vi-subst
Vi-tilde-expand
Vi-yank-arg
Vi-yank-
Yank
Yank-last-arg
Yank-nth-arg
Yank-pop
Root @ snil-hnlinux :~ #
Root @ snil-hnlinux :~ #
Root @ snil-hnlinux :~ #
Root @ snil-hnlinux :~ #
Root @ snil-hnlinux :~ # Bind-v
Set bind-tty-special-chars on
Set blink-matching-paren on
Set byte-oriented off
Set completion-ignore-case off
Set convert-meta off
Set disable-completion off
Set echo-control-characters on
Set enable-keypad off
Set enable-meta-key on
Set expand-tilde off
Set history-preserve-point off
Set horizontal-scroll-mode off
Set input-meta on
Set mark-directories on
Set mark-modified-lines off
Set mark-symlinked-directories off
Set match-hidden-files on
Set meta-flag on
Set output-meta on
Set page-completions on
Set prefer-visible-bell on
Set print-completions-horizontally off
Set revert-all-at-newline off
Set show-all-if-ambiguous off
Set show-all-if-unmodified off
Set skip-completed-text off
Set visible-stats off
Set bell-style audible
Set comment-begin #
Set completion-prefix-display-length 0
Set completion-query-items 100
Set editing-mode emacs
Set history-size 1000
Set keymap emacs
Lists the Keys and Key combinations of a specified function.
# Bind-q abort
// Call abort "C-g", "C-xC-g", and "eC-g ".
# Bind-q accept-line // lists the "accept-line" buttons and combined buttons.
// Call accept-line "C-j" and "C-m ".