A hodgepodge of Linux commands

Source: Internet
Author: User
Tags i18n

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.