How to change language only for terminal
I'm using Arabic as the default language but there are some issues when displaying it in terminal. So I want to change the language only in terminal to English, how can I do that ?
Solution 1:
You can add a line
export LANG=C
to the end of your ~/.bashrc
file and restart the terminal.
All program output will be in English.
Solution 2:
An Alternative approach is to run this:
export LC_ALL=en_US.UTF-8
For more permanent solution for you own user account only just put the command above into ~/.bashrc
file
You will see the change in your next terminal session. For an immediate change without the need of a new terminal session run:
source ~/.bashrc
In case of multiple terminal sessions (eg. using terminator) you will need to run the command above on each one of them.
So any terminal related error message will be in English (as fas as any gnu-utils related software).