Last active
January 20, 2025 15:43
-
-
Save dslwind/0eceae9ecc6026c6d22ce81dfca231c0 to your computer and use it in GitHub Desktop.
将Ubuntu主文件下的中文目录名改为英文
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ubuntu个人文件夹中文改英文 | |
### 背景 | |
选择中文安装好的Ubuntu系统主文件夹下的文件夹是中文的,例如`桌面`、`下载`、`图片`等,在终端下想要切换到这些文件夹就有点麻烦。 | |
虽然Unity桌面环境可以通过切换系统语言来改名,但是Mate等桌面环境下就没这么“方便”。 | |
### 命令行解决 | |
打开终端,在终端中输入命令: | |
``` | |
export LANG=en_US | |
xdg-user-dirs-gtk-update | |
``` | |
跳出对话框询问是否将目录转化为英文路径,同意并关闭。 | |
在终端中输入命令: | |
``` | |
export LANG=zh_CN | |
``` | |
关闭终端并重启,OK。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment