首页
首页 » 系统设置 » rdate(receive date)

rdate(receive date)

rdate(receive date)
功能说明:显示其他主机的日期与时间。
语  法:rdate [-ps][主机名称或IP地址...]
补充说明:执行rdate指令,向其他主机询问系统时间并显示出来。
参  数:
  -p  显示远端主机的日期与时间。 
  -s  把从远端主机收到的日期和时间,回存到本地主机的系统时间。

rdate

rdate [options] [host...]

TCP/IP command. Retrieve the date and time from a host or hosts on the network and optionally set the local system time.

Options

-l

Send errors and output to syslogd.

-p

Print the retrieved dates.

-s

Set the local system time from the host; must be specified by root.

-t n

Timeout each retrieval attempt after n seconds.

-u

Use UDP instead of TCP.