手机版

Linux bind命令 - Linux系统设置命令参数及用法大全

2019-09-17 阅读 :

Linux bind命令用于显示或设置键盘按键与其相关的功能。

您可以利用bind命令了解有哪些按键组合与其功能,也可以自行指定要用哪些按键组合。

语法

bind [-dlv][-f <按键配置文件>][-m <按键配置>][-q <功能>]

参数说明

  • -d  显示按键配置的内容。
  • -f<按键配置文件>  载入指定的按键配置文件。
  • -l  列出所有的功能。
  • -m<按键配置>  指定按键配置。
  • -q<功能>  显示指定功能的按键。
  • -v  列出目前的按键配置与其功能。

实例

显示按键组合的所有功能

# bind -l //显示按键组合的内容abortaccept-linealias-expand-linearrow-key-prefixbackward-bytebackward-charbackward-delete-charbackward-kill-linebackward-kill-wordbackward-wordbeginning-of-historybeginning-of-line……省略部分内容vi-goto-markvi-insert-begvi-insertion-modevi-matchvi-movement-modevi-next-wordvi-overstrikevi-overstrike-deletevi-prev-wordvi-putvi-redovi-replacevi-ruboutvi-searchvi-search-againvi-set-markvi-substvi-tilde-expandvi-yank-argvi-yank-toyankyank-last-argyank-nth-argyank-pop

显示当前按键组合的设置

# bind -labortaccept-linealias-expand-linearrow-key-prefixbackward-bytebackward-charbackward-delete-charbackward-kill-linebackward-kill-wordbackward-wordbeginning-of-historybeginning-of-linecall-last-kbd-macrocapitalize-wordcharacter-searchcharacter-search-backwardclear-screencompletecomplete-commandcomplete-filenamecomplete-hostnamecomplete-into-bracescomplete-usernamecomplete-variablecopy-backward-wordcopy-forward-wordcopy-region-as-killdabbrev-expanddelete-chardelete-char-or-listdelete-horizontal-spacedigit-argumentdisplay-shell-versiondo-lowercase-versiondowncase-worddump-functionsdump-macrosdump-variablesdynamic-complete-historyedit-and-execute-commandemacs-editing-modeend-kbd-macroend-of-historyend-of-lineexchange-point-and-markforward-backward-delete-charforward-byteforward-charforward-search-historyforward-wordglob-complete-wordglob-expand-wordglob-list-expansionshistory-and-alias-expand-linehistory-expand-linehistory-search-backwardhistory-search-forwardinsert-commentinsert-completionsinsert-last-argumentkill-linekill-regionkill-whole-linekill-wordmagic-spacemenu-completemenu-complete-backwardnext-historynon-incremental-forward-search-historynon-incremental-forward-search-history-againnon-incremental-reverse-search-historynon-incremental-reverse-search-history-againold-menu-completeoperate-and-get-nextoverwrite-modepossible-command-completionspossible-completionspossible-filename-completionspossible-hostname-completionspossible-username-completionspossible-variable-completionsprevious-historyquoted-insertredraw-current-linere-read-init-filereverse-search-historyrevert-lineself-insertset-markshell-backward-kill-wordshell-backward-wordshell-expand-lineshell-forward-wordshell-kill-wordskip-csi-sequencestart-kbd-macrotab-inserttilde-expandtranspose-charstranspose-wordstty-statusundouniversal-argumentunix-filename-ruboutunix-line-discardunix-word-ruboutupcase-wordvi-append-eolvi-append-modevi-arg-digitvi-back-to-indentvi-bwordvi-bWordvi-change-casevi-change-charvi-change-tovi-char-searchvi-columnvi-completevi-deletevi-delete-tovi-editing-modevi-end-wordvi-eof-maybevi-ewordvi-eWordvi-fetch-historyvi-first-printvi-fwordvi-fWordvi-goto-markvi-insert-begvi-insertion-modevi-matchvi-movement-modevi-next-wordvi-overstrikevi-overstrike-deletevi-prev-wordvi-putvi-redovi-replacevi-ruboutvi-searchvi-search-againvi-set-markvi-substvi-tilde-expandvi-yank-argvi-yank-toyankyank-last-argyank-nth-argyank-poproot@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# root@snail-hnlinux:~# bind -vset bind-tty-special-chars onset blink-matching-paren onset byte-oriented offset completion-ignore-case offset convert-meta offset disable-completion offset echo-control-characters onset enable-keypad offset enable-meta-key onset expand-tilde offset history-preserve-point offset horizontal-scroll-mode offset input-meta onset mark-directories onset mark-modified-lines offset mark-symlinked-directories offset match-hidden-files onset meta-flag onset output-meta onset page-completions onset prefer-visible-bell onset print-completions-horizontally offset revert-all-at-newline offset show-all-if-ambiguous offset show-all-if-unmodified offset skip-completed-text offset visible-stats offset bell-style audibleset comment-begin #set completion-prefix-display-length 0set completion-query-items 100set editing-mode emacsset history-size 1000set 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”.

阿里云服务器优惠网 阿里云优惠券 服务器教程 vps教程 vps是什么 网络工具 网站工具 服务器知识

本文标题:Linux bind命令 - Linux系统设置命令参数及用法大全 - 服务器教程_服务器技术_服务器知识_vps教程
本文地址:https://www.helloaliyun.com/tutorial/818.html

相关文章

  • CentOS 7 常用命令(系统关机、重启以及登出)

    关机:(系统的关机、重启以及登出 ) # 关闭系统(1)[root@localhost ~]# shutdown -h now # 关闭系统(2)[root@localhost ~]# init 0 # 关闭系统(3)[root@localhost ~]# telinit 0 # 按预定时间关闭系统[root@localhost...

    2019-12-07 服务器教程
  • linux重启命令 reboot与shutdown -r now的区别与联系

    在linux命令中reboot是重新启动,shutdown -r now是立即停止然后重新启动,都说他们两个是一样的,其实是有一定的区别的。shutdown命令可以安全地关闭或重启Linux系统,它在系统关闭之前给系统上的所有登录用户提示一条警告...

    2019-12-07 服务器教程
  • CentOS 7 如何使用命令重启或关机

    安装GNOME的朋友们首先切换到字符界面。切换到字符界面的方法如下: 先登陆进入系统,进入图形化界面,然后按Ctrl+Alt+F6(笔记本的是Ctrl+Alt+shift+Fn),进入字符界面。关机命令:shutdown或poweroffshutdown:shutdown -h now...

    2019-12-07 服务器教程
  • CentOS 7 正确关机重启的命令方法

    linux主要用于服务器领域,而在服务器上执行一项服务是永无止境的,除非遇到特殊情况,否则不会关机。和Windows不同,在linux系统下,很多进程是在后台执行的。在屏幕背后,可能有很多人同时在工作。如果直接按下电源的按钮,其他...

    2019-12-07 服务器教程
  • CentOS下的yum upgrade和yum update区别,没事别乱用!

    说明:生产环境对软件版本和内核版本要求非常精确,别没事有事随便的进行yum update操作!!!!!!!!!yum update: 升级所有包同时也升级软件和系统内核yum upgrade:只升级所有包,不升级软件和系统内核...

    2019-12-07 服务器教程
你可能感兴趣
热门浏览