rdate

用途

显示其他主机的日期与时间。

语法

rdate [-ps][主机名称或IP地址...]

描述

执行rdate指令,向其他主机询问系统时间并显示出来。该指令遵循 RFC (Request For Comments)868标准,传输日期和时间的信息。系统管理员可通过这个指令,校对、调整本地主机的系统时间。

参数

-p  显示远端主机的日期与时间。
-s  把从远端主机收到的日期和时间,回存到本地主机的系统时间。

例子

从 time.odin.org 主机下载日期与时间的信息,并以其为标准来调整系统时间:

$ rdate -s time.odin.org

相关命令

shells/commands/rdate.txt · 最后更改: 2010/03/30 13:01 (外部编辑)
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0