linux 时间设置
场景:相干gentoo linux 的时间设置
有关gentoo linux 的时间设置
有关gentoo linux 的时间设置
gentoo
将BIOS时间作为本地时间:
修改 /etc/conf.d/hwclock
将其中clock="UTC"改为clock="local"
Linux读取这个硬件时间要用到hwclock这个命令:
hwclock --show :显示硬件时间
hwclock --systohc :将系统时间写入硬件
hwclock --hctosys :将硬件时间写入系统时间