Linux command
loadkeys 命令
安全
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Example
sudo loadkeys [en|de|dvorak]
Example
sudo loadkeys --default
Example
sudo loadkeys -C /dev/ttyN [layout]
Example
sudo loadkeys -C /dev/ttyN [path/to/keymap]
Example
loadkeys --bkeymap > [output.bmap]
Parse
loadkeys --parse [keymap]
说明
loadkeys reads keymap files and loads the keyboard translation tables into the kernel, changing the keyboard layout for virtual consoles.
参数
- -d, --default
- Load default keymap
- -C, --console DEVICE
- Target specific console device
- -m, --mktable
- Output kernel source table
- -b, --bkeymap
- Output binary keymap
- -p, --parse
- Parse keymap without loading
- -q, --quiet
- Suppress all normal output
- -u, --unicode
- Force Unicode mode
- -a, --ascii
- Force conversion to ASCII
- -s, --clearstrings
- Clear kernel string table
- -c, --clearcompose
- Clear kernel accent table
- -t, --tkeymap _shape_
- Output a text keymap (optional shape: 2, 4, 8, 16)
- -V, --version
- Display version number and exit
FAQ
What is the loadkeys command used for?
loadkeys reads keymap files and loads the keyboard translation tables into the kernel, changing the keyboard layout for virtual consoles.
How do I run a basic loadkeys example?
Run `sudo loadkeys [en|de|dvorak]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --default do in loadkeys?
Load default keymap