Introduction:

In this guide, we will walk you through the process of updating and changing the time on your Ubuntu server using the command line. When you need to manually set the time, this guide will provide you with the information you need to get started.


Prerequisites:

  1. SSH Login details 
  2. Time zone details

Procedure:


Step 1: Log in to the server using SSH


Step 2: To find the available time zones in the server 

#ls /usr/share/zoneinfo



Step 2: Check the current time on the server 

#timedatectl

Step 3: To set the new timezone in the server 

#timedatectl set-timezone Asia/Kolkata 


To check the change enter the #timedatectl command in step 2.


The local time is updated.


Step 4: To confirm the time change in the server.

#date



Conclusion:

In this section, we have seen updating and changing the time on your Ubuntu server using the command line.

Leave a Reply