Linux rdate command
The Linux rdate command is used to display the date and time of another host.
Running the rdate command asks another host for its system time and displays it.
Syntax
rdate [-ps][主机名称或IP地址...]
Parameters:
- -p Display the date and time of the remote host.
- -s Set the local host's system time to the date and time received from the remote host.
- -u Use the UDP protocol as the transfer protocol
- -l Use syslog to display error messages
- -t
Set the timeout
Linux Command Reference