Manipulating the system formats on a computer helps tailor its settings according to your regional preferences. Date, time, number, and currency formats can differ based on cultural, linguistic, and regional contexts. On Ubuntu, the system formats are managed by the Locale settings, which dictate the representation of these values.
The Ubuntu desktop environment provides an intuitive graphical user interface to configure these settings. However, if you're running an Ubuntu server or prefer the command-line, these formats can also be adjusted using the locale and timedatectl commands. This article guides you through both methods.
$ sudo locale-gen en_US.UTF-8
Replace “en_US.UTF-8” with your desired locale.
$ sudo update-locale LANG=en_US.UTF-8
$ sudo timedatectl set-timezone America/New_York
Replace “America/New_York” with your desired timezone.
After following these steps, your Ubuntu system will represent date, time, numbers, and currency in the format associated with your selected region or language. Adjustments made will persist across system restarts and user logins.
Comment anonymously. Login not required.