linux时间设置

date 查看,配置系统上的时间



clock 查看,配置系统硬件上的时间

clock --set --date="09/17/2003 13:26:00"



tzselect 文本界面的时区设置
timeconfig 图形界面的时区设置
rdate -s time.nist.gov 和时间服务器同步.


clock的帮助
[root@smtp02 ~]# clock --help
hwclock - query and set the hardware clock (RTC)

Usage: hwclock [function] [options...]

Functions:
--help show this help
--show read hardware clock and print result
--set set the rtc to the time given with --date
--hctosys set the system time from the hardware clock
--systohc set the hardware clock to the current system time
--adjust adjust the rtc to account for systematic drift since
the clock was last set or adjusted
--getepoch print out the kernel's hardware clock epoch value
--setepoch set the kernel's hardware clock epoch value to the
value given with --epoch
--version print out the version of hwclock to stdout

Options:
--utc the hardware clock is kept in coordinated universal time
--localtime the hardware clock is kept in local time
--directisa access the ISA bus directly instead of /dev/rtc
--badyear ignore rtc's year because the bios is broken
--date specifies the time to which to set the hardware clock
--epoch=year specifies the year which is the beginning of the
hardware clock's epoch value
--noadjfile do not access /etc/adjtime. Requires the use of
either --utc or --localtime

评论

匿名说…
受益了.

此博客中的热门博文

在南京见到的农民工午饭情景

squid中的refresh_pattern详解

RamDisk三种实现方式