How do I change the character set?
To view the current character set:
[Email protected] ~]# echo $LANG
Zh_cn. UTF-8
Modify the character set to English
[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
Although the character set configuration file has been modified to English, it does not take effect
Directly through the command:. or source, you can make the configuration file effective. (Note: There are spaces in the middle of the/etc/sysconfig/i18n)
[Email protected] ~]#. /etc/sysconfig/i18n
Or
[Email protected] ~]# source/etc/sysconfig/i18n
2.
Kill process
Plill/rsync
[[Email protected] ~]# Date
Sat 15:58:02 CST 2017
[Email protected] ~]# date +%w
6
[Email protected] ~]# date +%f_%w
2017-08-12_6
This article is from the "Sandshell" blog, make sure to keep this source http://sandshell.blog.51cto.com/9055959/1955804
A hodgepodge of Linux commands