(1)[root@jackie ~]# date -r
mon, 07 may 2018 13:19:11 +0800 (显示+0800为北京时间)
(2)[root@jackie ~]# cp /usr/share/zoneinfo/asia/shanghai /etc/localtime
cp:是否覆盖/etc/localtime? y
(3)[root@jackie ~]# vi .bash_profile
# .bash_profile
# get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# user specific environment and startup programs
path=$path:$home/bin:/home/jackie/arm-2011.03/bin
tz='asia/shanghai'; export tz (需要添加的项)
export path
(4)[root@jackie ~]# source .bash_profile (使文件生效)
(6)[root@jackie ~]# date -r (再次查看)
mon, 07 may 2018 13:19:11 +0800 (显示+0800为北京时间)
