ubuntu下修改时区

使用一个虚拟机服务,其时区设置的为格林兰标准时区,我北京时区在东八区,较其快八个小时。

修改时区需要执行

tzselect

一步步选择下来,注意确认后的information

Therefore TZ='Asia/Shanghai' will be used.
Local time is now: Fri Aug 2 09:28:07 CST 2013.
Universal Time is now: Fri Aug 2 01:28:07 UTC 2013.
Is the above information OK?
1) Yes
2) No
#? 1 You can make this change permanent for yourself by appending the line
TZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

需要自己将TZ='Asia/Shanghai'; export TZ 写入到.profile中,再重新登录即可。

上一篇:notepad++ 配置笔记


下一篇:bzoj3037--贪心