首页 > 技术文章 > 终端中英文提示切换

momo6656 2021-07-15 17:13 原文

切换为中文:

LANG=zh_CN.UTF-8

[root@localhost ~]# LANG=zh_CN.UTF-8
[root@localhost ~]# asdadas
bash: asdadas: 未找到命令...

切换到英文:

LANG=en_US. UTF-8

[root@localhost ~]# LANG=en_US.UTF-8
[root@localhost ~]# asdadas
bash: asdadas: command not found..

推荐阅读