bash - 使用 BASH 命令更改语言

标签 bash

如何更改 BASH 中的语言,s.t.错误消息将以英文显示? 这将允许我直接发布错误消息,而无需翻译它们。 使用 export LANG=en_GB.UTF-8vi ~/.bashrc 不起作用。

最佳答案

设置LANG环境变量:

export LANG=C

en_GB.UTF-8 也可以。但把它放在~/.profile中。并重新启动您的登录 shell。

或者将文件放入 /etc/profile.d 中以进行系统范围的配置。

关于bash - 使用 BASH 命令更改语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51818894/

相关文章:

linux - shell脚本linux,bash : moving files according to name field-1 to the specific path in field-2 using `cut`

linux - 寻找一个非常简单的 Bash 脚本来自动按键

json - 什么linux命令可以将新的字段键值对添加到json文件

linux - 系统 Shell 脚本无法在 PATH 中找到我的命令

linux - 从具有父目录的每个子文件夹复制特定文件

linux - 为 bash 中的参数设置特定选项集

linux - 通过 SSH 将变量传递给远程脚本

bash - osascript语法错误 “Expected expression but found end of line. (-2741)”

regex - 在 bash/unix 中删除 CSV 文件所有列的空格

linux - 如何将本地 shell 变量导出到多命令 ssh 中?