Change the folder name in the home directory of Linux back to English

Source: Internet
Author: User

For ease of use, installed in the Ubuntu Chinese version, naturally in the home file user directory "desktop", "Picture", "video", "Music" ... It's all in Chinese. Many times like to put some on the desktop to manipulate the file, Linux command line operation is more, will inevitably use the command line to operate the things on the desktop, then the "CD desktop", hit "desktop" when the input method to switch, trouble ... So we will find a way to change the path of the user directory into English, and the other Chinese unchanged, the method is as follows:


Open the terminal and enter the command in the terminal:

Export Lang=en_us

Xdg-user-dirs-gtk-update


Jump out of the dialog box to ask whether to convert the directory to English path, agree and close.


Enter the command in the terminal:

Export LANG=ZH_CN


Close the terminal and re-start. The next time you enter the system, you will be prompted to change the converted directory back to Chinese. Select no longer prompted, and cancel the modification. The English language of the home directory is finished.

===============================================================================

In some Linux boards, the above commands are not available, but we can manually modify the way to achieve, specific way:

Locate ~/.config/user-dirs.dis File

(Note: ~/represents the current user directory. config is a hidden file)

Change the Chinese in the file to the corresponding English

Then create the corresponding English folder in the ~/directory and restart it.

Change the folder name in the home directory of Linux back to English

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.