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

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,security

ssh-agent and ssh-add authentication agent

Programs in the ssh core suite such as scp, ssh, ssh-add, ssh-agent, sshd, and ssh-keygen Let's talk about ssh-agent and ssh-add usage scenarios. Before we start, let's take a brief introduction to the purpose of these instructions:

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.