Blog

How to configure timezone in Ubuntu

Tags: local timetimezoneUbuntu

Published on: September 23, 2014 by Mithun S.

How to configure timezone in Ubuntu

Scenario:

There are different methods to change the timezone in Linux (Debian). The most simple and widely used ubuntu timezone configuration methods are shown below :-

Method 1 :-

To change the timezone,run the following command as root user:


# dpkg-reconfigure tzdata

 

>>Select the geographical area in which you live

timezone

Now select the city corresponding to your timezone

timezone_2

Method 2 :-

We can also set the timezone using /etc/localtime configuration file.

The various timezones are available in the /usr/share/zoneinfo directory.

Delete the current timezone using the below command

# rm -f /etc/localtime

In order to set the new timezone create a symbolic link to the file /etc/localtime configuration file.

For example :-

To verify the new settings execute the date command

date

Note :- When the /etc/localtime is removed, the system shows the Greenwich Mean Time (GMT)

Get 24/7 expert server management

Category : General, Howtos, Linux

Mithun S.

Mithun S.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Categories

Your Cart

Cart is empty.

Subtotal
₹0.00
APPLY
0
Send this to a friend