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