Linux modification time

Time:2021-9-13
#Modify time zone
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  

#Modification time < machines that can access the Internet >
yum -y install ntpdate
ntpdate  cn.pool.ntp.org
#Modification time < machines that cannot access the Internet >
date -s "2019-10-15 17:18:56"
#System time synchronization hardware time
hwclock  --systohc
#Hardware time synchronization system time
hwclock  --hctosys

This work adoptsCC agreement, reprint must indicate the author and the link to this article

:kissing_ closed_ eyes:

Recommended Today

Java Engineer Interview Questions

The content covers: Java, mybatis, zookeeper, Dubbo, elasticsearch, memcached, redis, mysql, spring, spring boot, springcloud, rabbitmq, Kafka, Linux, etcMybatis interview questions1. What is mybatis?1. Mybatis is a semi ORM (object relational mapping) framework. It encapsulates JDBC internally. During development, you only need to pay attention to the SQL statement itself, and you don’t need to […]