How to update/change time in the Ubuntu server.

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.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top