Files
cheatsheet-tldr/tldr/linux/loadkeys
2026-03-04 00:26:41 +00:00

43 lines
1016 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# loadkeys
> Load the kernel keymap for the console.
> See also: `localectl`.
> More information: <https://manned.org/loadkeys>.
- 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}}`