Linux command
locale-gen 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Generate
sudo locale-gen
Example
sudo locale-gen --keep-existing
说明
locale-gen compiles locale definitions from `/etc/locale.gen` into binary locale data. Uncomment desired locales in that file before running this command.
参数
- --keep-existing
- Do not delete existing locale data
- --purge
- Remove existing locales before generating
FAQ
What is the locale-gen command used for?
locale-gen compiles locale definitions from `/etc/locale.gen` into binary locale data. Uncomment desired locales in that file before running this command.
How do I run a basic locale-gen example?
Run `sudo locale-gen` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --keep-existing do in locale-gen?
Do not delete existing locale data