2025-03-14 21:59:59 -06:00
|
|
|
# loadkeys
|
|
|
|
|
|
|
|
|
|
> Load the kernel keymap for the console.
|
2025-06-28 19:25:29 -06:00
|
|
|
> See also: `localectl`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/loadkeys>.
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
- Load a specific keyboard layout for the current console:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`sudo loadkeys {{en|de|fi|dvorak|defkeymap|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
- Load a default keymap:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`sudo loadkeys {{[-d|--default]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Print the kernel source table of a keymap to `stdout`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`loadkeys {{[-m|--mktable]}} {{en|de|fi|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Print the binary format of a keymap to `stdout`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`loadkeys {{[-b|--bkeymap]}} {{en|de|fi|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Search and parse keymap without action:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`loadkeys {{[-p|--parse]}} {{en|de|fi|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Load a keymap from `stdin`, suppressing all output:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`{{command}} | sudo loadkeys {{[-q|--quiet]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
- Set a keymap for a specific console:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`sudo loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{uk}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
- Load a keymap from the specified file for the console:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo loadkeys {{[-C|--console]}} {{/dev/ttyN}} /{{path/to/file}}`
|