by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 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,system,config

Fix the problem that CentOS6.x can no longer be updated

There may still be some old programs in some places, which can only run the old system. But you want to be able to execute and install some desired packages, you may try this method. Please note that if this system is important to you, please evaluate it yourself. It is recommended that you have a Docker environment and have a backup image before trying it.

linux

How rsync automatically allows ssh key fingerprints

When we use ssh to connect to the host for the first time, a fingerprint confirmation of the host key will be displayed. Sometimes use rsync for some automated scheduling, maybe the remote host has changed and needs to be automatically allowed, How to let ssh automatically allow fingerprints to connect without manually pressing yes in interactive mode?

linux

About setfacl

I think most of the current Linux supports Access Control List (ACL). With filesystem ACLs enabled, We can set additional permissions to different users or groups. This allows us to set the file system permissions of different users more freely. Go straight to the command.