by Devin Yang
(This article was automatically translated.)

Published - 8 years ago ( Updated - 8 years ago )

On the new version of RHEL 7/CentOS 7 or Fedora, we can check the status and make adjustments through timedatectl.

Show current settings

timedatectl


To list timezone available commands (List available time zones, one per line.)
timedatectl list-timezones|grep Asia

After finding the timezone, set it as follows, for example:
 timedatectl set-timezone Asia/Taipei

Enable network time synchronization
timedatectl set-ntp true

Tags: linux

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux

The error code returned by rsync

All rsync error codes are listed here, so in scheduling, we can understand the reason for the failure.

linux,cli

How to use the date command to display yesterday's date

The instructions are different on MacOS or Linux, but achieve the same effect. Let's see how to display yesterday's date with the date command.

linux

Load the environment variables of .env to the system

Load the environment variables of .env to the system