Time synchronization for Linux

Source: Internet
Author: User

the time of Linux is divided into system clock and real time clock (hardware, or RTC). system time: Refers to the time in the current Linux kernel. hardware time: battery-powered time on the motherboard. command to view system time: #datecommand to set the system time: #date –set (Month/day/year: minutes: seconds)Example: #date –set "10/11/10 10:15"to view hardware time commands: # Hwclockcommand to set hardware time: # hwclock–set–date = (month/day/year: minutes: seconds)the above mentioned is to manually set the time to a point in time, possibly with the current network time error. Here's how to synchronize time on a time server1. Installing the Ntpdate tool# yum-y Install NTP ntpdate2. Set the system time to synchronize with the network time# ntpdate cn.pool.ntp.org3. Write system time to hardware time# Hwclock--SYSTOHC

Time synchronization for Linux

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.