0

单用户模式下终端乱码解决

 1 year ago
source link: https://zhangyiming748.github.io/post/tty_en_us/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

单用户模式下终端乱码解决

2022-09-26 Linux

终端显示英文提示,桌面环境显示中文

$ sudo vim /etc/profile

if [ "$TERM"="linux" ] ;then
  export LANG="en_US.UTF-8"
  export LC_ALL="en_US.UTF-8"
  export LANGUAGE="en_US.UTF-8"
  export LANG="en_US.UTF-8"
fi

sudo vim .bashrc
#
if [ -z "$DISPLAY" ]; then
        export LANG="en_US.UTF-8"
        export LC_ALL="en_US.UTF-8"
        export LANGUAGE="en_US.UTF-8"
        export LANG="en_US.UTF-8"
fi
#

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK