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.