CentOS查看当前时区及修改默认时区的方式如下:
1.查看当前时区
date -R
2.修改时区
tzselect
执行上面的命令,然后按照提示进行操作,但是只能当前回话保存,如果想要永久保存,需要修改 ~/.bash_profile
,增加
TZ='Asia/Shanghai';
export TZ
如下:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
TZ='Asia/Shanghai';
export TZ
最新评论
没有磁力吗
不行,这个版本4K还是限速~
搞笑了,官网打不开的机场,检验倒数到0直接卡死了
都是ip6的,有ip4的吗?老电视不支持ip6