Entos 7 Time zone settings

Source: Internet
Author: User
Tags time zones

Setting the time zone similarly, in CentOS 7, a Setup Setup program called Timedatectl is introduced.

The usage is simple:

# timedatectl # View the various states of the system time

$timedatectl status
Local Time: Four the- A- - Ten: the:Tencstuniversal time: Four the- A- - Geneva: the:TenUTCRTC time: Four the- A- - Geneva: the:TenTimezone:asia/shanghai (CST, +0800) NTP enabled:yesntp SYNCHRONIZED:YESRTCinchLocal TZ:NODST active:n/A

# timedatectl List-timezones # List all time zones

# timedatectl SET-LOCAL-RTC 1 # Adjust the hardware clock to match the local clock, 0 for UTC time
# timedatectl Set-timezone Asia/shanghai # Set the system time zone to Shanghai
In fact, regardless of the distribution of the differences, from the bottom of the words, the time-zone modification is easier than imagined:

# Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime

Entos 7 Time zone settings

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.