The ntpdate and hwclock commands use the ntpdate command to obtain the network time and use it as the hardware Time: the ntpdate and hwclock commands use the ntpdate command to obtain the network time and use it as the hardware Time: www.2cto.com/usr/sbin/ntpdate servername/ip &/sbin/hwclock -- systohc>/dev/null 2> & 1 example: /usr/sbin/ntpdate tw.pool.ntp.org &/sbin/hwclock -- systohc>/dev/null 2> & 1 General servername: asia. pool. Ntp.orgcn.pool.ntp.orghk.pool.ntp.orgtw.pool.ntp.orgsg.pool.ntp.org manually set the system time: date-s "time date" date-s "12:30:00 20130204" manually set the hardware time: www.2cto.com hwclock -- set -- date = "month/day/year: minute: Second (common format) hwclock -- set -- date = "2013/02/05 12:30:00" ---> You can use hwclock -- set -- date = "20130205 12:30:00" ----> to use crontab together with crontab. the time is based on the system time!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service