View modify Linux time zone and time

Source: Internet
Author: User
Tags set time time and date

View/modify Linux time zone and time
One, time zone
1. View the current time zone
Date-r
2. Modify the settings time zone
Tzselect
3. Copy the appropriate time zone file, replace the system time zone file, or create a linked file
cp/usr/share/zoneinfo/$ main time zone/$ times time zone/etc/localtime
Can be used in China:
Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime

Second, time
1. Check the time and date
Date
2. Set time and date
command to set the system date to June 10, 1996
Date-s 06/22/96
command to set the system time to 1:52 P.M. 0 seconds
Date-s 13:52:00
3. Write the current time and date to the BIOS to avoid failure after reboot
Hwclock-w

4. Check the BIOS (hardware) time

Hwclock--show or Hwclock-r


Three, timing synchronization time
* * * * * */usr/sbin/ntpdate 210.72.145.44 >/dev/null 2>&1

View modify Linux time zone and time

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.