Linux Modify time zone

Source: Internet
Author: User

    1. To see if the CentOS system time is consistent with the local Win7 system time.

      Input command: date-r

      step read
    2. 2

      Sets the time zone for the CentOS system.

      Enter the command:  tzselect

      Set the steps in sequence: 5→ Enter →9→ enter →1→ enter →1.  

      Note: 5) asia  →9) china  → 1) east china -beijing.... → 1) Yes

    3. 3

      Replaces the CentOS system time zone file.

      Input command:  cp/usr/share/zoneinfo/asia/shanghai /etc/localtime   

      Note: Set the time of the Chinese time zone to select Asia/shanghai.

    4. 4

      Determines the substitution.

      Appears "CP: Do you want to overwrite/etc/localtime?" , enter the command: y   (agree to overwrite)

    5. 5

      View the CentOS system time after Setup.

      Re-enter the command:  date  

       

Linux modifies the time zone

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.