Linux command
localectl 命令
趣味
复制后可按需替换文件名、目录或参数。
常用示例
Example
localectl
Example
localectl list-locales
Example
localectl set-locale LANG=en_US.UTF-8
Example
localectl list-keymaps
Example
localectl set-keymap us
Example
localectl set-x11-keymap us pc105
说明
localectl queries and changes the system locale and keyboard layout settings. It controls both console and X11 keyboard mappings through systemd-localed.
参数
- --no-ask-password
- Do not prompt for password
- --no-convert
- Do not convert console keymap to X11 or vice versa
- -H, --host
- Execute operation on remote host
- -M, --machine
- Execute operation on container
FAQ
What is the localectl command used for?
localectl queries and changes the system locale and keyboard layout settings. It controls both console and X11 keyboard mappings through systemd-localed.
How do I run a basic localectl example?
Run `localectl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --no-ask-password do in localectl?
Do not prompt for password