Linux modification time

Posted on
dev.dizzycoding.com/

#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:

Leave a Reply

Your email address will not be published.