The objective of this tutorial is to change system’s language from a command line on Ubuntu 20.04 Focal Fossa Server.
In this tutorial you will learn:
- How to check system language settings
- How to set new system language from command line
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
Change system language on Ubuntu 20.04 from command line step by step instructions
- First step is to check the current system language settings. To do so execute the
locale
command with no arguments:$ locale
- Reconfigure, the current system language settings. To do so execute the bellow
dpkg-reconfigure
command:$ sudo dpkg-reconfigure
DID YOU KNOW?
The systemd specific command to change system language islocalectl
which allows for more configuration options. However, in this case usingdpkg-reconfigure
is easier as it also automatically downloads the required language pack and directly provides the user with an option to set new system language in one go. In any case it is worth to check theman localectl
for more information. -
Next, select your desired system language.
-
- Log out and log in to confirm your selection by execution the
locales
command.