Linux / Centos change the time zone

View the current time zone command: #date -R

Copy the appropriate time zone file, replace the system zone files; or create a link file
#cp / usr / share / zoneinfo / when $ master zone / $ secondary time zone / etc / localtime
example: When setting up in China using the Asia / Shanghai (+8)
# cp / usr / share / zoneinfo / Asia / Shanghai / etc / localtime

Then use the following command to change the written bios.
#hwclock
If you are interested or have questions to ask, please add: 15149813470, free answer.

Guess you like

Origin blog.51cto.com/11233498/2405150