- 修改字符集如何生效?
查看当前的字符集:
[[email protected] ~]# echo $LANG
zh_CN.UTF-8
修改字符集为英文
[[email protected] ~]# sed -i ‘s#zh_CN#en_US#g‘ /etc/sysconfig/i18n
[[email protected] ~]# cat /etc/sysconfig/i18n
LANG="en_US.UTF-8"
[[email protected] ~]# echo $LANG
zh_CN.UTF-8
虽然字符集配置文件已经修改成英文了但是不生效
直接通过命令:.或者source就可以使配置文件生效。(注意.和/etc/sysconfig/i18n中间有空格)
[[email protected] ~]# . /etc/sysconfig/i18n
或者
[[email protected] ~]# source /etc/sysconfig/i18n
2.
杀进程
plill /rsync
[[email protected] ~]# date
Sat Aug 12 15:58:02 CST 2017
[[email protected] ~]# date +%w
6
[[email protected] ~]# date +%F_%w
2017-08-12_6
时间: 2024-11-06 07:26:26