How To Set Up Timezone and NTP Synchronization?

Contents
  1. CentOS

Set Up Timezone and NTP Synchronization?

CentOS

You can use the following command line utility to configure the system clock in CentOS

# timedatectl

Display the current time and date

# timedatectl status

command to Display the current time and date in Centos

Display all available Timezones

# timedatectl list-timezones

Command to display all available Timezones in centos

Display a particular Timezone under Asia starting with alphabet “H”

# timedatectl list-timezones | grep -o “Asia/H.*”

Display a particular Timezone in Centos

To change or set a Timezone you can use the below command. Eg: Change to Hong Kong

# timedatectl set-timezone Asia/Hong_Kong

Command to change or set a time zone in Centos

To enable NTP to synchronize time with Internet time

# timedatectl set-ntp yes

For Ubuntu & Debian

You can use the following command line utility to configure the system clock in Ubuntu & Debian servers

# timedatectl

Display the current time and date

# timedatectl

command- to configure the system clock in Ubuntu & Debian servers

Display all available Timezones

# timedatectl list-timezones

Command to Display all available Timezones

Display a particular Timezone under Asia starting with alphabet “H”

# timedatectl list-timezones | grep -o “Asia/H.*”

command to Display a particular Timezone

To change or set a Timezone you can use the below command. Eg: Change to Hong Kong

# timedatectl set-timezone Asia/Hong_Kong

NTP 8

To enable NTP to synchronize time with Internet time

# timedatectl set-ntp on

For Windows

To configure with NTP or Internet Time

Right click on the time in Taskbar and then click “Adjust date/time”

change or set time in windows

Click on the “Internet Time” tab

internet time setting windows

Click on “Change settings…”

NTP 11

Check the “Synchronize with an Internet time server” box

Select an available Internet time server from drop down menu

sync with internet time

Click “Update now” and then “OK”

To change Timezone

Click on the “Date and Time” tab

set date time in windows

Click on the “Change time zone…”

timezone stiings windows

Select needed Time zone from drop down menu

time zone sttings

Click “OK”

GET STARTED WITH OUR HOSTING SUPPORT SERVICES

Rohith Krishnan

Rohith SK is an MSC computer science graduate living in Cochin, Kerala. As a technology enthusiast, he is always on the lookout for the latest trends and developments in the field, with a particular interest in cloud computing and DevOps updates. Apart from his passion for technology, Rohith SK is an avid reader and enjoys spending his free time exploring different genres of literature. He believes that reading is one of the best ways to expand one's knowledge and understanding of the world. With his expertise in computer science and a passion for technology, Rohith SK regularly contributes articles and blog posts on the latest trends and updates in the industry. His articles offer insights and valuable perspectives on the various aspects of cloud computing and DevOps, and are widely read and appreciated by readers all over the world. As an experienced technology writer and researcher, Rohith SK's articles are well-researched, informative, and easy to understand, making them accessible to readers of all levels of technical knowledge. Whether you're a beginner looking to learn more about the latest trends in technology, or an experienced professional seeking insights and updates, Rohith's articles are sure to provide valuable information and insights.

Leave a Reply