by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 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, mac, terminal, tips

How to clear the input of the current command line on the terminal of Linux or Mac?

How to clear the current command line in Linux or Mac terminal? For example, if you typed a bunch of instructions wrongly, and you want to clear them, Be sure to do the same as I used to, use the reverse key to kill slowly, we can use...

linux,macos

PS aux will you?

For Linux system administrators, you must understand the ps aux command. If you want to be a Linux system administrator, or you are a Linux user, you should understand this command. ps is process status For short, anyone can find out what kind of program is running on the system and how the status is executed through this command. I saw some programs that should not appear, maybe the system was hacked and used to mine🥹

linux,docker,wifi

Use docker to build a WPA2/EAP enterprise Radius authentication server, and the backend uses a mysql database

AP provides WPA2/EAP function, but it won't work? This article introduces how I can quickly build a Radius server through docker's ubuntu:21.04 image. Related applications such as WPA2/EAP of Wifi.