Linux practical notes: adjust the linux system time and time zone 1. modify the time zone: # cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime when copying, a message indicating whether to overwrite the data is displayed. Click yes to change to Dongba district of China # vi/etc/sysconfig/clockZONE & quot ;... linux practical notes: adjust the linux system time and time zone 1. modify the time zone: # cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime when copying, a message indicating whether to overwrite the data is displayed. Click yes to change to China's GMT + 8 # vi/etc/sysconfig/clockZONE = "Asia/Shanghai" UTC = falseARC = false 2. configure the new time and date settings: # date-s time setting: # date-s 18:45:52 vim column edit mode Ctrl + v advanced column import mode, move the cursor to select the row and column to be edited, Shift + I to enter the edit mode, then Esc
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