O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Terminal Control

bindkey

[-l|-d|-e|-v|-u]

bindkey

[-a] [-b] [-k] [-r] [--] key

bindkey

[-a] [-b] [-k] [-c|-s] [--] key command

Without options, the first form lists all bound keys and the editor command to which each is bound, the second form lists the editor command to which each key is bound, and the third form binds the editor command command to key. Options include the following:

Example: To set your key bindings to emulate vi, use

bindkey -v

-l Lists all editor commands and a short description of each.
-d Binds all keys to the standard bindings for the default editor.
-e Binds all keys to the standard GNU Emacs-like bindings.
-v Binds all keys to the standard vi(1)-like bindings.
-a Lists or changes key bindings in the alternative key ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required