commands.sh

loadkeys

linux

Load the kernel keymap for the console. See also: `localectl`.

More info →

Options (6)

-d, --defaultboolean

Load a default keymap

Example: sudo loadkeys {{[-d|--default]}}
-m, --mktableboolean

Print the kernel source table of a keymap to `stdout`

Example: loadkeys {{[-m|--mktable]}} {{en|de|fi|...}}
-b, --bkeymapboolean

Print the binary format of a keymap to `stdout`

Example: loadkeys {{[-b|--bkeymap]}} {{en|de|fi|...}}
-p, --parseboolean

Search and parse keymap without action

Example: loadkeys {{[-p|--parse]}} {{en|de|fi|...}}
-q, --quietboolean

Load a keymap from `stdin`, suppressing all output

Example: {{command}} | sudo loadkeys {{[-q|--quiet]}}
-C, --consoleboolean

Set a keymap for a specific console

Example: sudo loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{uk}}

Examples (8)

Load a specific keyboard layout for the current console

sudo loadkeys en|de|fi|dvorak|defkeymap|...

Load a default keymap

sudo loadkeys [-d|--default]

Print the kernel source table of a keymap to `stdout`

loadkeys [-m|--mktable] en|de|fi|...

Print the binary format of a keymap to `stdout`

loadkeys [-b|--bkeymap] en|de|fi|...

Search and parse keymap without action

loadkeys [-p|--parse] en|de|fi|...

Load a keymap from `stdin`, suppressing all output

command | sudo loadkeys [-q|--quiet]

Set a keymap for a specific console

sudo loadkeys [-C|--console] /dev/ttyN uk

Load a keymap from the specified file for the console

sudo loadkeys [-C|--console] /dev/ttyN /path/to/file
made by @shridhargupta | data from tldr-pages