Linux system boot hardware time write system time

Set system time and synchronize to hardware time

date -s '2023-05-26 12:30:20'
hwclock -w

Write the boot hardware time to the system time

export TZ=CST-8
hwclock --hctosys

Guess you like

Origin blog.csdn.net/yhjahjj1314/article/details/130884385