Change the Linux system directory in the Chinese environment to English

  1. Check the current system locale, and remember to change it back later
echo $LANG
  1. Modify the current language environment of the system to English
export LANG=en_US
  1. Update directory file naming
xdg-user-dirs-gtk-update

A dialog box pops up, confirm the modification, and check Do not prompt again

  1. Change the system locale back
export LANG=zh_CN.UTF-8
  1. reboot
  2. Modify system configuration files (sometimes automatically)
vim ~/.config/user-dirs.dirs
  • Note:
    Sometimes after restarting, you will find that the Chinese directory still exists. This is because there are files in this directory. You can manually move the file to the corresponding English directory and delete it.

Guess you like

Origin blog.csdn.net/qq_43377653/article/details/130169967