1、查看时间、日期
date "+%Y-%m-%d %H:%M:%S"
2、修改日期、时间
date -s "2020-12-25 12:10:00"
3. 将当前时间和日期写入BIOS,避免重启后失效
hwclock -w
时间同步:
1、查看时间、日期
date "+%Y-%m-%d %H:%M:%S"
2、修改日期、时间
date -s "2020-12-25 12:10:00"
3. 将当前时间和日期写入BIOS,避免重启后失效
hwclock -w
时间同步: