Linux-converting Ubuntu Chinese folder to English

Source: Internet
Author: User

Preface

When installing Ubuntu, if you select the Chinese language as the system language, after the installation is complete, several file directories under the main folder of the Ubuntu system are in Chinese, so that they are only in the terminal, it is really inconvenient to input. Of course, if you select English when installing Ubuntu, there is no such problem. This blog provides a simple solution to this problem.

 

Implementation Principle

In fact, this is a good understanding. When you choose to install it in Chinese, Ubuntu will set the default language of the system to Chinese, as a result, several default directories in the main folder are also translated. At this time, you only need to change the language supported by the system. When the system language changes, Ubuntu will prompt whether to change the directory name. In this case, you only need to update the new name.

 

Implementation Method 1:

For Ubuntu, a graphical Linux version, you can directly use visual software to change the default system language. Click system Settings> language support. Drag the English language to the top of the list and click <apply to the entire system>. Then, the system prompts whether to replace the folder name. Click replace. After the replacement is complete, replace Chinese with the original folder name. For example:

 

 

Method 2:

For Ubuntu, in addition to graphical operations, you can also operate it directly on the terminal. The statement is as follows:

1 $ export LANG = en_US # change the supported language to English 2 $ xdg-user-dirs-gtk-update # update the system language, according to the corresponding English translation 3 $ export LANG = zh_CN.UTF-8 # support Chinese again

If the system folder name is replaced, click <update Name>. The effect is as follows:

The running effect is as follows:

 

 

The two methods are introduced here. In fact, they both work in the same way. They are used to update the Chinese folder to english display, so that operations can be conveniently performed on the terminal.

 

 

 

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.