1LOCALECTL(1) localectl LOCALECTL(1)
2
3
4
6 localectl - Control the system locale and keyboard layout settings
7
9 localectl [OPTIONS...] {COMMAND}
10
12 localectl may be used to query and change the system locale and
13 keyboard layout settings.
14
15 The system locale controls the language settings of system services and
16 of the UI before the user logs in, such as the display manager, as well
17 as the default for users after login.
18
19 The keyboard settings control the keyboard layout used on the text
20 console and of the graphical UI before the user logs in, such as the
21 display manager, as well as the default for users after login.
22
23 Use systemd-firstboot(1) to initialize the system locale for mounted
24 (but not booted) system images.
25
27 The following options are understood:
28
29 --no-ask-password
30 Do not query the user for authentication for privileged operations.
31
32 --no-convert
33 If set-keymap or set-x11-keymap is invoked and this option is
34 passed, then the keymap will not be converted from the console to
35 X11, or X11 to console, respectively.
36
37 -H, --host=
38 Execute the operation remotely. Specify a hostname, or a username
39 and hostname separated by "@", to connect to. The hostname may
40 optionally be suffixed by a container name, separated by ":", which
41 connects directly to a specific container on the specified host.
42 This will use SSH to talk to the remote machine manager instance.
43 Container names may be enumerated with machinectl -H HOST.
44
45 -h, --help
46 Print a short help text and exit.
47
48 --version
49 Print a short version string and exit.
50
51 --no-pager
52 Do not pipe output into a pager.
53
54 The following commands are understood:
55
56 status
57 Show current settings of the system locale and keyboard mapping.
58
59 set-locale LOCALE...
60 Set the system locale. This takes one or more assignments such as
61 "LANG=de_DE.utf8", "LC_MESSAGES=en_GB.utf8", and so on. See
62 locale(7) for details on the available settings and their meanings.
63 Use list-locales for a list of available locales (see below).
64
65 list-locales
66 List available locales useful for configuration with set-locale.
67
68 set-keymap MAP [TOGGLEMAP]
69 Set the system keyboard mapping for the console and X11. This takes
70 a mapping name (such as "de" or "us"), and possibly a second one to
71 define a toggle keyboard mapping. Unless --no-convert is passed,
72 the selected setting is also applied as the default system keyboard
73 mapping of X11, after converting it to the closest matching X11
74 keyboard mapping. Use list-keymaps for a list of available keyboard
75 mappings (see below).
76
77 list-keymaps
78 List available keyboard mappings for the console, useful for
79 configuration with set-keymap.
80
81 set-x11-keymap LAYOUT [MODEL [VARIANT [OPTIONS]]]
82 Set the system default keyboard mapping for X11 and the virtual
83 console. This takes a keyboard mapping name (such as "de" or "us"),
84 and possibly a model, variant, and options, see kbd(4) for details.
85 Unless --no-convert is passed, the selected setting is also applied
86 as the system console keyboard mapping, after converting it to the
87 closest matching console keyboard mapping.
88
89 list-x11-keymap-models, list-x11-keymap-layouts,
90 list-x11-keymap-variants [LAYOUT], list-x11-keymap-options
91 List available X11 keymap models, layouts, variants and options,
92 useful for configuration with set-keymap. The command
93 list-x11-keymap-variants optionally takes a layout parameter to
94 limit the output to the variants suitable for the specific layout.
95
97 On success, 0 is returned, a non-zero failure code otherwise.
98
100 $SYSTEMD_PAGER
101 Pager to use when --no-pager is not given; overrides $PAGER.
102 Setting this to an empty string or the value "cat" is equivalent to
103 passing --no-pager.
104
105 $SYSTEMD_LESS
106 Override the default options passed to less ("FRSXMK").
107
109 systemd(1), locale(7), locale.conf(5), vconsole.conf(5), loadkeys(1),
110 kbd(4), The XKB Configuration Guide[1], systemctl(1), systemd-
111 localed.service(8), systemd-firstboot(1)
112
114 1. The XKB Configuration Guide
115 http://www.x.org/releases/current/doc/xorg-docs/input/XKB-Config.html
116
117
118
119systemd 219 LOCALECTL(1)