English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux bind 명령어는 키보드 키와 관련된 기능을 표시하거나 설정하는 데 사용됩니다.
bind 명령을 사용하여 키 조합과 기능을 이해할 수 있으며, 사용자 정의 키 조합을 지정할 수 있습니다.
bind [-dlv][-f <키 설정 파일>][-m <키 설정>][-q <기능>]
파라미터 설명:
키 조합의 모든 기능을 표시합니다
# 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 …… 내용을 축소 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-to yank yank-last-arg yank-nth-arg yank-pop
화면에 현재 키 조합 설정을 표시합니다
# 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-to vi-char-search vi-column vi-complete vi-delete vi-delete-to 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-to yank yank-last-arg yank-nth-arg yank-pop root@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# bind -v bind 설정-tty-special-chars 활성화 blink 설정-matching-paren 활성화 byte 설정-oriented 비활성화 completion 설정-ignore-case 비활성화 convert 설정-meta 비활성화 disable 설정-completion 비활성화 echo 설정-control-characters 활성화 enable 설정-keypad 비활성화 enable 설정-meta-key 활성화 expand 설정-tilde 비활성화 history 설정-preserve-point 비활성화 horizontal 설정-스크롤-mode 비활성화 input 설정-meta on mark 설정-디렉토리 활성화 mark 설정-수정된-줄 비활성화 mark 설정-시mlinked-디렉토리 비활성화 matchCondition 설정-숨겨진-파일들에서 meta 설정-flag on output 설정-meta on page 설정-completions on prefer 설정-visible-bell on print 설정-completions-horizontally off revert 설정-all-at-newline off show 설정-all-if-ambiguous off show 설정-all-if-unmodified off skip 설정-completed-text off visible 설정-stats off bell 설정-audible 설정 comment 스타일 설정-begin # completion 설정-prefix-display-length 0 completion 설정-query-items 100 editing 설정-mode emacs 설정 history 설정-size 1000 keymap emacs 설정
지정된 기능의 키와 키 조합 나열
# bind -q abort //abort “C” 호출하려면 사용하세요-g”, “C-xC-g”, “eC-g”. # bind -q accept-line //accept 기능 나열-line” 키 및 키 조합 //accept 호출하려면 사용하세요-line “C-j”, “C-m”.