How to change the timezone on Ubuntu 18.04 Server?

You can perform the below steps using root or sudo users.

  1. Check your current timezone by executing the following commands.

    # timdatectl

  2. As you can see above that, the current time zone is UTC. Now, if we want to change to another timezone.
  3. Now, we want to change the timezone. First, we need to list out all the zones. You can check it by executing the below command.

    # timedatectl list-timezones

  4. Those are the timezones. Now, if we wish to change to “Africa/Juba”. Now, we will grep the “Juba” from the timezone by fire below command.

    # timedatectl list-timezones | grep juba

  5. So, finally we have identified our timezone, lets change it to it. Follow the below command in order to change the timezone.

    # timedatectl  set-timezone africa/juba
  6. By performing the above command, we can see that our timezone has been changed.

Related Articles

Fix :: Linux SSH error "connection refused"

Problem Statement Can't connect to a Linux server(Debian Flavour) via SSH. Error Message...

How to kill a process on Linux using command?

There might be an issue with applications that can be hung and not working properly. In this...

How to Switch Web Server from Apache to LiteSpeed on WHM?

Apache and LiteSpeed both are the WebServers. Apache is older and popular compared to LiteSpeed....

How to block an IP address using .htaccess?

You can block traffic coming from any specific IP addresses with .htaaccess file. Please refer to...

How to install FFmpeg on CentOS7 VPS?

FFmpeg is a multimedia codex that can convert audio and video files into different formats....

  • 0 Users Found This Useful

Was this answer helpful?