centos 时间、时区

1.时区
date -R //时间+时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime//修改时区

2.时间
系统时间:也叫软件时间(sys), 1970年1月1日到当前时间的秒数
BOIS时间:也叫硬件时间(hc)
data
hwclock -r//硬件时间

date -s 20121019
date -s 23:40:00//手动

ntpdate time.windows.com//根据网络更新时间
hwclock -w或 hwclock --systohc//将当前时间和日期写入BIOS,避免重启后失效

你可能感兴趣的:(时区,centos时间)